Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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.

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?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2022-05-22 20:09 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (81 votes). Check out past polls.