John W. Krahn wrote:
>
> No need to create and then dereference an anonymous array, you can get
> list context for the count like this:
>
>           my $count = () = /\b$soundex\b/g;

Thanks John: I've never seen that before. By rights I would have thought
it should assign either zero (as the number of elements in an empty
list) or
undef (as the last element of an empty list) to $count. Do you know
where
this is documented?

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to