Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: ternary operator

by Sidhekin (Priest)
on Jul 17, 2006 at 23:45 UTC ( [id://561888]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sidhekin@blackbox:~$ perl -le '($c = 1) = 2; print $c'
    2
    sidhekin@blackbox:~$ perl -le '$c = 1 = 2; print $c'
    Can't modify constant item in scalar assignment at -e line 1, near "2;
    +"
    Execution of -e aborted due to compilation errors.
    sidhekin@blackbox:~$
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 20:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found