Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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
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?

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://90778]
[ambrus]: ambrus's scratchpad
[ambrus]: Also, I was wrong, apparently you have to support both periodic and one-shot timers in an AnyEvent backend
[Corion]: ambrus: That looks deceptively simple, but maybe that's simply all that's needed. Which would be great! I hope I get to test it tomorrow, thanks!!
[choroba]: Hm, unrelated question.
[ambrus]: I added a timer implementation to ambrus's scratchpad as well, again the whole thing is completely untested and probably has more bugs than lines

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2016-12-08 12:43 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (141 votes). Check out past polls.