On Fri, 22 Jun 2001, Paul wrote:
>  $count = () = /$pattern/g;

This seems like a place that an array() operator like scalar()
woudl be usefull.  Then you could do '$count = array(/$pat/g);'
instead.  I know the above works well, but it would be nice for
completeness to have array() as well as scalar().

Perlfunc suggests... '$count = @{[ /$pattern/g ]};' but that
isn't as obvious as array.

--
Ian

Reply via email to