in reply to Re: Getting a list of aliases to selected items from a list of array references
in thread Getting a list of aliases to selected items from a list of array references
I had trouble attempting to dynamically build the equivalent of the @closures array using the "map {BLOCK}" syntax - apparently that conflicts with lvalue subs. }sub : attribtute ... will be parsed at the beginning of a statement as "sub" being a label, and attribute... the code to run. Put a + in front of sub to disambiguate. Witness:
The makings of a fine japh here...$ perl5.8.4 -we'sub xyzzy { print "huh?" } sub : xyzzy; shift() and go +to "sub"' 1 2 huh?huh?huh?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Getting a list of aliases to selected items from a list of array references
by NetWallah (Canon) on May 16, 2004 at 17:07 UTC |