Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Using ternary operator as lvalue in push

by dada (Chaplain)
on Aug 01, 2007 at 09:54 UTC ( [id://630006]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # This is perl, v5.8.7
    my @a = (1,2,3);
    my @b = (4,5,6);
    push 1==1 ? @a : @b, "foo";
    print "a=@a b=@b\n";
    
  2. or download this
    push 1==0 ? @a : @b, "foo";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-24 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found