Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Perl Humor

by Anonymous Monk
on Sep 20, 2002 at 13:20 UTC ( #199458=note: print w/ replies, xml ) Need Help??


in reply to Perl Humor

How do I find the largest element in an array?
Write a foreach loop to scan the elements one at a time, and stop when you get to the largest one.

Or two passengers on a bus:

Passenger 1: I'm trying to get to 4th and main, could you tell me how to get there?
Passenger 2: Sure, just get off two stops before I do.

I think I could make use of this one as well:

I tried getpeername and it gave me some weird error message.
If you got `some weird error' the problem is with your frobobnitz.

Good stuff =D.


Comment on Re: Perl Humor
Re: Re: Perl Humor
by tretin (Friar) on Sep 20, 2002 at 18:29 UTC
    I thought I remembered reading somewhere here that abigail once returned the question of 'how do I get tomorrow's date' with the answer
    sub tomorrow_date { sleep 86_400; return localtime(); }


    or perhaps I am just mistaken...
    work it harder make it better do it faster makes us stronger more than ever hour after our work is never over.
      abigail is on the list of contributors, and Dominus is the author, if I understood it correctly.
Re: Re: Perl Humor
by John M. Dlugosz (Monsignor) on Sep 20, 2002 at 20:25 UTC
    > If you got `some weird error' the problem is with your frobobnitz.

    I don't get it.

    I suppose someone could have a peer named "error" and that would confuse people. I wonder if I name my kid NULL if that would crash databases and he'd never get junk mail?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-08-23 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (172 votes), past polls