Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by petdance (Parson)
on Jun 22, 2001 at 20:33 UTC ( #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.


Comment on Re: japhy's Perl Film picks (some are puzzles...)
Select or Download Code
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
Node Status?
node history
Node Type: note [id://90778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-11-26 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (160 votes), past polls