Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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}; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://319771]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2018-06-22 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (124 votes). Check out past polls.

    Notices?