in reply to Re^4: Mini-Tutorial: Scalar vs List Assignment Operator
in thread Mini-Tutorial: Scalar vs List Assignment Operator
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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Mini-Tutorial: Scalar vs List Assignment Operator
by ikegami (Patriarch) on Aug 22, 2009 at 03:46 UTC |