On Mon, Apr 18, 2005 at 11:23:34PM +0300, Roie Marianer wrote:
> That makes sense, but that would make
>  %num_of_lines<file> = @file
> not DWIM... of course that would translate into
>  %num_of_lines<file> = scalar @file
> so maybe that's OK.

In order to promote proper syntactical thinking, note that this is now
spelled:

  %num_of_lines<file> = @file.elems;

because the Perl 5 way would put a reference to @file in the hash.
Scalar context always makes references now, from what I understand.

Reply via email to