Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Passing a hash into a subroutine

by BUU (Prior)
on Jan 08, 2004 at 10:05 UTC ( #319771=note: print w/ replies, xml ) Need Help??


in reply to Passing a hash into a subroutine

sub new { my $package = shift; # implicitly passed by the new package syntax my %opts = @_; print $opt{foo}; }


Comment on Re: Passing a hash into a subroutine
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://319771]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2015-07-01 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (24 votes), past polls