Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: japhy's Perl Film picks (some are puzzles...)

by petdance (Parson)
on Jun 22, 2001 at 20:33 UTC ( [id://90778]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://90778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-03-29 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found