in reply to How to pass a variable to function selected from a hash
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
|
---|