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

Re^2: References for ano subs fixed at compile time? (nope)

by LanX (Saint)
on Jun 18, 2013 at 21:36 UTC ( [id://1039669]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<123> sub test(&) { my( $c ) = @_; print 0+$c,$/; return $c }
    
    ...
    145184216
    145184216
     => ""
    
  2. or download this
      DB<155> sub tst2(&) { my( $c ) = @_; print &$c,":\t",0+$c,$/;return 
    +$c}
    
    ...
    2:    141318480
    3:    141318480
    
  3. or download this
      DB<158> ;{ my $b; for my $a (1..3){tst1 {1} ; $b=tst2 {2} if $a==1 }
    + }
    1:    141317840
    2:    141317840
    1:    141318608
    1:    141318608
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-23 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found