|Perl: the Markov chain saw|
Re: Mini-Tutorial: Scalar vs List Assignment Operatorby biohisham (Priest)
|on Aug 22, 2009 at 14:23 UTC||Need Help??|
one of the frequently used functions are map and grep, both with a similar syntax and arguments but BLOCK and EXPR in a grep statement are evaluated in a scalar context while in a map statement they are evaluated in a list context, it would be really great if you could address the evaluation differences as you've the assignment one. I don't really know much about the inner working of both functions because I am not as much experienced but I am puzzled by the way list and scalar contexts are presented.
Thanks A lot.
Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind.