package MyModule; require Exporter; our @ISA = qw /Exporter/; our @EXPORT_OK = qw /$some_variable/; ... 1; # Program using the module. package main; use MyModule '$some_variable';
In reply to Re: how to import a module var
by Perl Mouse
in thread how to import a module var
by rianne809
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |