Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How do I get the module to print hello?package Bio; $VERSION = '0.01'; require Exporter; use vars qw/@ISA/; @ISA = qw(Exporter); @EXPORT = qw(%users); sub import { my $self = shift; my %args = @_; $path = $args{path}; } print "hello" if $path; 1; __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Export/import variables
by pfaut (Priest) on Mar 18, 2003 at 03:03 UTC | |
by Anonymous Monk on Mar 18, 2003 at 03:30 UTC | |
by bart (Canon) on Mar 19, 2003 at 21:08 UTC | |
by diotalevi (Canon) on Mar 19, 2003 at 21:11 UTC |