Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Mini-Tutorial: Scalar vs List Assignment Operator

by ikegami (Pope)
on Aug 20, 2009 at 17:12 UTC ( #790146=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -wle'sub f :lvalue { $x,$y } f()=(4,5); print $x,$y'
    Useless use of a constant in void context at -e line 1.
    ...
    
    $ perl -wle'sub f :lvalue { $x,$y } (f())=(4,5); print $x,$y'
    45
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://790146]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2016-12-06 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (99 votes). Check out past polls.