in reply to japhy's Perl Film picks (some are puzzles...)
in thread The Perl Film Festival

Some of those are completely brilliant, but I really think that
pop @mohicans;
is more accurately
$mohicans[-1];
Also, I think that the data structure for
@couples = map [ pop @brides, pop @brothers ], 1..7;
should really be
%couples = map { (pop @brothers, pop @brides) }, 1..7;
Note the hash as having a "has-a" relationship, right?

xoxo,
Andy
--
I was dreaming when I wrote this, so sue me if I go too fast.

Replies are listed 'Best First'.
Re: Re: japhy's Perl Film picks (some are puzzles...)
by japhy (Canon) on Jun 22, 2001 at 20:49 UTC
    Technically, if all the mohicans died, it'd be $mohicans[0] as well, no? ;)

    japhy -- Perl and Regex Hacker
Re: Re: japhy's Perl Film picks (some are puzzles...)
by dga (Hermit) on Aug 26, 2001 at 20:23 UTC

    Or to get the overall effect.

    $last = map { pop @mohicans } @mohicans;

    Thus leaving no mohicans other than the one you have in $last.