Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
XP is just a number
 
PerlMonks  

LanX's scratchpad

by LanX (Monsignor)
on Sep 03, 2008 at 12:42 UTC ( #708739=scratchpad: print w/ replies, xml ) Need Help??

DB<113> sub tst { print "bla" } DB<114> $t=\&tst DB<115> $t->() bla DB<116> *tst=sub { print "haha" } DB<117> tst() haha DB<118> *tst=$t DB<119> tst() bla DB<122> sub tst { print "new" } DB<123> $t->() bla

use strict; use warnings; $\="\n"; *tst=sub { print "orig" }; tst(); my $safe=\&tst; { no warnings; *tst=sub { print "new"}; } tst(); { no warnings; *tst=$safe; } tst();
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2013-05-24 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (495 votes), past polls