in reply to Re: Re (tilly) 1: Apocalypse 3
in thread Apocalypse 3

Hi Damian,

In the Section "Applied Laziness 101" of the third Exegesis, you wrote:
Of course, if we'd written:

my ($name, $vers, $status, $costs, @and_the_rest) = <fh>;

The the entire file would have been read
Did you mean:

my ($name, $vers, $status, $costs, *@and_the_rest) = <fh>;

or will array assignment work differently on the diamond operator?

Simon Flack ($code or die)
$,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
=~y'_"' ';eval"die";print $_,lc substr$@,0,3;

Replies are listed 'Best First'.
Re: Re: Re: Re (tilly) 1: Apocalypse 3
by TheDamian (Vicar) on Oct 06, 2001 at 10:07 UTC
    Did you mean:
    my ($name, $vers, $status, $costs, *@and_the_rest) = <fh>;


    No. I did mean just what I wrote.

    Regular = assignments have the same "slurp-it-all-up" semantics as in Perl 5.

    The flattening asterisk is only required in subroutine parameter lists or := bindings.