Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Perl closures: internal details.

by moritz (Cardinal)
on Apr 12, 2012 at 09:34 UTC ( #964731=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use 5.010;
    sub f {
    ...
    __END__
    CODE(0x18cede8)
    CODE(0x18cede8)
    
  2. or download this
    use 5.010;
    sub f {
    ...
    __END__
    CODE(0x1d5cde8)
    CODE(0x1d5cf98)
    
  3. or download this
    perl -MO=Concise,f -e 'sub f { my $x = shift; sub () { $x } };'
    main::f:
    ...
    6              <0> pushmark sRM ->7
    7              <$> anoncode[CV ""] lRM ->8
    -e syntax OK
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://964731]
help
Chatterbox?
[Discipulus]: good morning nuns and monks!
[FloydATC]: Is CPAN down?!?
[FloydATC]: I get a 404 for www.perl.com/CPAN

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2018-01-24 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (256 votes). Check out past polls.

    Notices?