Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
We don't bite newbies here... much
 
PerlMonks  

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

by dec (Beadle)
on Aug 22, 2009 at 01:23 UTC ( #790511=note: print w/ replies, xml ) Need Help??


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?


Comment on Re^5: Mini-Tutorial: Scalar vs List Assignment Operator
Re^6: Mini-Tutorial: Scalar vs List Assignment Operator
by ikegami (Pope) on Aug 22, 2009 at 03:46 UTC

    huh?

    Are you saying I wrote a tutorial on contexts? I didn't, but someone else did over here.

    Are you saying you're writing a tutorial on contexts? All the power to you, but maybe should start a new thread (where people will actually see it) instead of placing it in a reply to some unrelated post.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-04-21 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (492 votes), past polls