On Fri, 22 Jun 2001, iansmith wrote:

> 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().

However, remember that () is not creating an array, it's creating a list
context, and then it gets forced into a scalar context.

-- Brett

                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Culture is the habit of being pleased with the best and knowing why.

Reply via email to