in reply to hash o' refs
Which would be your final line. You may drop the curly braces around THING_THAT_CONTAINS_A_CODE_REF if and only if the THING is a simple scalar variable. Yours is not.&{ THING_THAT_CONTAINS_A_CODE_REF }( @ARGS ) # (@ARGS) optional
As an alternative syntax, you may use
which would beTHING_THAT_CONTAINS_A_CODE_REF -> ( @ARGS )
in your case. That last syntax is due to yours truly challenging chip to get it in during the final perl 5.004 gamma release, which he did. You're welcome. {grin}$hash{test}->()
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: hash o' refs
by Russ (Deacon) on Aug 08, 2000 at 03:12 UTC | |
|
RE: RE: hash o' refs
by Adam (Vicar) on Aug 08, 2000 at 02:44 UTC |