in reply to my sub ?
The only thing that will look different is the call to the fucntion if you can live with that.sub a { my $ref = sub { print "x1\n"; }; &$ref; } sub b { my $ref = sub { print "x2\n"; }; &$ref; } &a; &b;
/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: my sub ?
by shotgunefx (Parson) on Mar 25, 2002 at 20:00 UTC | |
by maverick (Curate) on Mar 25, 2002 at 20:06 UTC | |
by Fletch (Bishop) on Mar 25, 2002 at 20:09 UTC | |
by shotgunefx (Parson) on Mar 25, 2002 at 20:12 UTC |