Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: pass a hash to subroutine

by blazar (Canon)
on Nov 08, 2005 at 08:07 UTC ( #506647=note: print w/replies, xml ) Need Help??


in reply to Re^2: pass a hash to subroutine
in thread pass a hash to subroutine

But once more, if i want pass 2 or more hashes to subroutine, is it the same?
It was already in my answer, (although I minimally updated it silently for added clarity). Minimal example using a prototype:
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; sub foo (\%\%) { Dumper @_; } my %a=(foo => 1, bar =>2); my %b=(%a, bax => 3); print foo %a, %b; __END__

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://506647]
help
Chatterbox?
[LanX]: ... obviously too long
[Eily]: I yes, the natural onion in the flamming eye, I know what you mean
[LanX]: Eily your turn to provide a pic :)
[Eily]: occupe toi de tes oignons
LanX could do a zoom out in animated gif ...
[LanX]: heh
[marto]: get with the times, webm :P
[LanX]: didn't know this expression xD
[Eily]: :)
[Eily]: if you want to learn French expressions you can give a look to @bouletcorp on twitter

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-12-14 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (398 votes). Check out past polls.

    Notices?