benlaw has asked for the wisdom of the Perl Monks concerning the following question:
Thanks#! perl -w %a = (qw{ good orange bad apple} ); TEST(%a); sub TEST{ my %h = $_[0]; foreach (keys %h){ print $_; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pass a hash to subroutine
by sauoq (Abbot) on Nov 07, 2005 at 13:45 UTC | |
|
Re: pass a hash to subroutine
by g0n (Priest) on Nov 07, 2005 at 13:47 UTC | |
by benlaw (Scribe) on Nov 07, 2005 at 14:29 UTC | |
by g0n (Priest) on Nov 07, 2005 at 14:49 UTC | |
by blazar (Canon) on Nov 08, 2005 at 08:07 UTC | |
|
Re: pass a hash to subroutine
by blazar (Canon) on Nov 07, 2005 at 14:26 UTC |