http://qs1969.pair.com?node_id=199458


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.

Replies are listed 'Best First'.
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?