On Mon, Apr 23, 2001 at 01:23:43PM -0600, Nathan Torkington wrote:
> Larry Wall writes:
> > wanted, you still get the length.  If you're worried about the delayed
> > operation, you can force numeric context with $x = +@tmp;, just as you
> > can force string context with a unary ~.
> 
> How often are you likely to do this?  Speaking as a reader of code,
> I've always hated unary + in that crocky "this could be a block or an
> expression" sense.  I'd prefer a word operator:
> 
>   $x = numeric @tmp;

Ig you are going to put a word there, then why not

  $x = length @tmp

or

  $x = @tmp.length

Graham.

Reply via email to