Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Local for lexicals

by Roy Johnson (Monsignor)
on Aug 13, 2009 at 14:10 UTC ( #788301=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl
    use strict;
    ...
    $closure->($_, $_+1) for (1..4);
    
    print "And my X is $x\n";
    
  2. or download this
    my $closure = sub {
      my ($x, $y) = @_;
      print "Got $x and $y\n";
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://788301]
help
Chatterbox?
[shmem]: ...at least for my perldoc on Linux debian 8
[Discipulus]: mmh.. at themomemt i just an old 5.8 and outputs just GLOBAL::
[Discipulus]: anyway thanks! i've posted my font size suggestion anyway

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-05-23 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?