Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Returning two hashes from a sub?

by esskar (Deacon)
on Mar 01, 2004 at 15:53 UTC ( [id://332942]=note: print w/replies, xml ) Need Help??


in reply to Returning two hashes from a sub?

I think using the parameters is the best choice
sub routine { my ($hashref1, $hashref2) = @_; # don't convert them back to hashes # work with the refs instead, so you won't have to # set @_ at the end } my %first, %second; routine(\%first, \%second);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found