Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Passing values in a hash to a subroutine:by Elihu (Novice) |
on Feb 02, 2000 at 00:28 UTC ( [id://2674]=perlquestion: print w/replies, xml ) | Need Help?? |
Elihu has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to clean up data in a hash by passing the values to a subroutine. I'm using a foreach loop as follows:
I would expect this code to work, but it doesn't. I've tried explicitly using $_, also: This one works: Could anyone explain this to me? -Thanks.
Back to
Seekers of Perl Wisdom
|
|