On Sat, Dec 13, 2003 at 12:12:59PM -0800, Larry Wall wrote:
> 
>     print $ref
> 
> it doesn't do what you want, but
> 
>     print $ref.as(Array)
> 
> might work a lot better, though of course
> 
>     print @$ref
> 

What is supposed to do the splat operator in this context? My
understanding is that when an operator expects something and gets
a ref instead, the ref is dereferenced until the expected operand
is found. The interpretor barks otherwise.

So I expect 

  print *$ref

when $ref is ref to an array to be equivalent to

  print [EMAIL PROTECTED]

which in turn should behave like

  print @$ref

because C<print> splats its operands.

I don't pretend that C<print *$ref> is very readable, I just ask
what it does or if it is at all permitted.

--
  stef

Reply via email to