Syntactic Confectionery Delight | |
PerlMonks |
Re: How to pass a variable to function selected from a hashby arturo (Vicar) |
on Jan 18, 2001 at 04:34 UTC ( [id://52649]=note: print w/replies, xml ) | Need Help?? |
Ugly solution, off the top of my head. I hate myself for proposing this. I hope someone will save us from: Define a global (or file-level my variable), $val, have each sub do my $arg = $val ... ? There's got to be a better way though =) Update Oh, OK. I thought the problem was that the args weren't being passed to the coderefs at all =) Nothing to see, move along ... I'll feel foolish either way =) Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In Section
Seekers of Perl Wisdom
|
|