for (@_) { if (ref($_) eq "HASH") { push @options, $_; } else { push @exports, $_; } }
-- Randal L. Schwartz, Perl hacker
In reply to Re: An alternate way of implementing import with options
by merlyn
in thread Passing parameters to a module's import function
by rrwo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |