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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-10-25 07:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls