Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

surprising backwards evaluation order

by fizbin (Chaplain)
on Mar 17, 2006 at 20:03 UTC ( [id://537549]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub ctx {
      print "$_[0] ";
    ...
    
    ctx(1)->(2,ctx(3),ctx(4))->(5,ctx(6))->(7,ctx(8));
    print "\n";
    
  2. or download this
    8 6 3 4 1 2 5 7
    
  3. or download this
    perl -e '&{die("ONE")}(die("TWO"))'
    perl -e 'die("ONE")->(die("TWO"))'
    
  4. or download this
    @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
    map{y/X_/\n /;print}map{pop@$_}@/for@/
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-29 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found