so, how do I get the arguments
Inspect @_ in the import routine.
sub import { my $pkg = shift; # "cacher" in this case my $dir = $_[0] || "/tmp"; setup_cachehash($dir); ... } sub setup_cachehash { ... }
In reply to Re: Skeleton For Import to Package?
by almut
in thread Skeleton For Import to Package?
by iaw4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |