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


in reply to TIMTOWTDI -- so long as it's not my way

i think my favorite mistake so far is:
open FILE, $file or die "Couldn't open file: $!"; my @file = <FILE>; foreach (@file) { s/ome/substitution/ if ($applicable); } close FILE;
i couldn't understand for two days why the output was always a blank file. (i embarassingly had to hand it to a friend for him to notice i wasn't writing the file out! : )

Anyway, ++ Ovid, i fell out of my chair laughing from that code. Thanks for the good cheer.

jynx

Replies are listed 'Best First'.
Re: Re: TIMTOWTDI -- so long as it's not my way
by jplindstrom (Monsignor) on Jan 16, 2001 at 02:53 UTC
    Just telling someone else about a problem is often all you need to realize what the problem (and the solution) is.

    /J

      A friend of mine called that "The Mannequin Effect" and just wanted a mannequin to wheel around the office to people who knew they were doing something stupid, but couldn't figure out why. That way you wouldn't pull someone off work just to have you go "Doh!"