SPUG:Rookie Question
ced at carios2.ca.boeing.com
ced at carios2.ca.boeing.com
Mon Jun 16 20:58:14 CDT 2003
> That's not a void context... grep() returns the array which is the
> object of map(). The return value of map() is used as the key for an
> anonymous hash, which is then subtracted from $uniq. What is means to
> subtract a hash from a scalar is a mystery beyond the ken of mere
> programmers. It's the result of the subtraction which sees a void
> context and is discarded, but that doesn't affect map() or grep().
I didn't say the context was void --
"Hm, Tim doesn't like grep... Maybe just if used in void
context..."
I was suggesting though that this might explain the perceived bias
that was ascribed to Tim.
Near violence can erupt in some quarters if map or grep or
backticked commands are used in void context.
Quick, Tim, straighten this mess out :)
--
Charles DeRykus
More information about the spug-list
mailing list