Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Lexical scoping like a fox

by convenientstore (Pilgrim)
on Jan 13, 2008 at 16:26 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://662192]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found