Massyn has asked for the wisdom of the Perl Monks concerning the following question:
Any idea how I can pass an entire hash as a parameter to a sub? Thanks!. . &callsub(%hashtopass); sub callsub { %hashread = $_[0]; foreach $k (keys %hashread) { . . . } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Passing hashes to subs?
by hotshot (Prior) on Aug 01, 2002 at 11:31 UTC | |
Re: Passing hashes to subs?
by Chady (Priest) on Aug 01, 2002 at 11:33 UTC | |
Re: Passing hashes to subs?
by crenz (Priest) on Aug 01, 2002 at 11:35 UTC | |
by Chady (Priest) on Aug 01, 2002 at 12:33 UTC | |
by crenz (Priest) on Aug 01, 2002 at 12:46 UTC | |
Re: Passing hashes to subs?
by particle (Vicar) on Aug 01, 2002 at 12:01 UTC | |
Re: Passing hashes to subs?
by moxliukas (Curate) on Aug 01, 2002 at 11:40 UTC | |
Re: Passing hashes to subs?
by flocto (Pilgrim) on Aug 01, 2002 at 11:41 UTC | |
Re: Passing hashes to subs?
by c0bra (Acolyte) on Aug 01, 2002 at 15:16 UTC |