![]() |
|
No such thing as a small change | |
PerlMonks |
foreach keys possible using a hash reference?by c (Hermit) |
on Jul 04, 2002 at 16:57 UTC ( #179494=perlquestion: print w/replies, xml ) | Need Help?? |
c has asked for the wisdom of the Perl Monks concerning the following question:
I am passing a hash to a subroutine as a reference, e.g. &thing(\%hash); The subroutine then pulls in the hash values with my $args = shift; and I call the values using $args->{key}. Is there a manner of running thru the "keys" of this hash reference, even though its now a scalar, rather than an actual hash? thanks -c
Back to
Seekers of Perl Wisdom
|
|