Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Lexical closures

by chromis (Novice)
on Oct 27, 2008 at 20:09 UTC ( [id://719824]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    say join(', ', map(\$_, @array)); # ..surprisingly familiar too!
    
    say \@array[0];
    
  2. or download this
    SCALAR(0x8153220)
    SCALAR(0x8153360)
    ...
    x, y, z
    SCALAR(0x8153220), SCALAR(0x8153360), SCALAR(0x8153100)
    SCALAR(0x8153220)
    
  3. or download this
    my $i = 123;
    
    ...
    }
    
    say $i . ' ' . \$i;
    
  4. or download this
    123 SCALAR(0x817bd18)
    1 SCALAR(0x8153220)
    2 SCALAR(0x8153220)
    3 SCALAR(0x8153220)
    123 SCALAR(0x817bd18)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://719824]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-20 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found