阅读背景:

在脚本文件中定义了Perl包,如何有包导出子例程?

来源:互联网 

Given the following:

鉴于以下内容:

package My::Pack;

use Exporter::Easy (
    OK => [ qw(pack_func) ],
);

sub pack_func {
    ...
}

package main;
<script here that uses pack_func>
package My::Pa



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: