Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Lexical scoping like a fox

by convenientstore (Pilgrim)
on Jan 13, 2008 at 16:26 UTC ( #662192=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
    print "Just after end of scope\n";
    print "\$a is ", defined($a) ? $a : 'undef', $/;
    print "\$b is ", defined($b) ? $b : 'undef', $/;
    
  2. or download this
    [root@myserver tmp]# cat -n !$
    cat -n ./per_begin.pl1
    ...
    [root@myserver tmp]# ./!$
    ././per_begin.pl1
    Can't localize lexical variable $x at ././per_begin.pl1 line 14.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://662192]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2017-02-26 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (369 votes). Check out past polls.