InfiniteSilence has asked for the wisdom of the Perl Monks concerning the following question:
C:\Temp>perl -e "$ms= sub { sub{print 'msqrx'}}; $ms->()->();"
msqrx
C:\Temp>perl -e "$ms= sub { sub{print 'msqrx'}}; &{$ms->()};"
msqrx
C:\Temp>perl -e "$ms= sub { sub{print 'msqrx'}}; &{&{$ms}};"
Celebrate Intellectual Diversity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Easier ways to write
by tye (Sage) on Jul 04, 2001 at 01:17 UTC | |
|
Re: Easier ways to write
by bikeNomad (Priest) on Jul 04, 2001 at 00:27 UTC | |
|
Re: Easier ways to write
by dragonchild (Archbishop) on Jul 04, 2001 at 00:29 UTC | |
|
Re: Easier ways to write
by John M. Dlugosz (Monsignor) on Jul 04, 2001 at 00:25 UTC |