|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^5: Mini-Tutorial: Scalar vs List Assignment Operatorby dec (Beadle) |
| on Aug 22, 2009 at 01:23 UTC ( #790511=note: print w/ replies, xml ) | Need Help?? |
|
It's not Question: what is the point in writing a tutorial explaining the difference between list and scalar contexts? Answer: so that people who don't know the difference can gain some enlightenment. Question: Besides poring over man pages or searching the Internet, what other way is there to gain an understanding of when a list context is implied and when a scalar context is implied Answer: write a sub that calls wantarray and divine the context directly Have I made my point?
In Section
Meditations
|
|
||||||||||||||||||||||