Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

my (0?$a:$b): a koan

by educated_foo (Vicar)
on May 04, 2011 at 16:52 UTC ( [id://902937]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $a=1;
    $b=2;
    ...
        my (0?$a:$b) = 3;
        print "a=$a\nb=$b\n"
    }->()
    
  2. or download this
    my (0?$a:$b) = 3;
    # becomes
    BEGIN { create_lexicals(0?$a:$b); } # A
    (0?$a:$b) = 3; # B
    
  3. or download this
    a=
    b=3
    
  4. or download this
    $a = 1;
    $b = 2;
    ...
        print "a=$a\nb=$b\n";
    }
    ->();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://902937]
Approved by LanX
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-24 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found