sub new { my $package = shift; # implicitly passed by the new package syntax my %opts = @_; print $opt{foo}; }
In reply to Re: Passing a hash into a subroutine
by BUU
in thread Passing a hash into a subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |