Monday, July 22, 2013

How could you make variables exportable in ".pm" file?

use Exporter qw (import);

our @EXPORT_OK = ();

sub  _exportable(@)
{
     push @EXPORT_OK, @_;
}

our $dir_bin="/home/usr/bin";
_exportable '$dir_bin';

No comments :