>Let me shift gears and instead ask whether anyone thinks this:

>> >   $y = ($first, $second) = grep /$pat/, @data;

>Returning "5" has any value? If you're going to do this, it seems like
>you'd want the number that were really returned (since scalar grep
>will give you the total number found anyways). 

Of course: the LHS is a known quantity; only the RHS is a mystery.
That's why it does this.  I'm sure this in perldata.

--tom

Reply via email to