Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Lexical closures

by chromis (Novice)
on Oct 27, 2008 at 20:09 UTC ( #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
Node Status?
node history
Node Type: note [id://719824]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2019-07-17 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?