in reply to Re: Re: my sub ?
in thread my sub ?
Yes it does, but if you just stick $ref; out there by itself, or with () after it, perl doesn't get that that's supposed to be a function call and throws a syntax error.
You pretty much have to have the & as far as I know.
Or you could use $ref->(); It's monday and I'm being a blonde.
Update:Thanks chromatic, Fletch, and shotgunefx for the clue-by-four-ing.
/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: my sub ?
by Fletch (Bishop) on Mar 25, 2002 at 20:09 UTC | |
Re(4): my sub ?
by shotgunefx (Parson) on Mar 25, 2002 at 20:12 UTC |
In Section
Seekers of Perl Wisdom