Perl and C are my two languages of choice at the moment. (I intend to add Haskell at some point, in my Copious Free Time.) So naturally, sometimes I find myself writing C that looks like this:
No big surprise there. But today at work, hacking together another DBI script, I wrote:for($i = 0; $i < $n; $i++) { &foobar($arr[$i]); }
Naturally, struct wasn't what I meant to type. But my instinctive reaction to the error message was rather unusual, and (in retrospect) quite amusing:#! /usr/bin/perl -w use struct;
Whoops. Anyways, I figured I'd give you fine folks a chance to have a chuckle at my expense. Anyone else have similar stories that they wouldn't mind sharing?#! /usr/bin/perl -w typedef struct;
Blessed be
Update: Gah. Well, it was Samhain in localtime when I posted.
--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl and C don't always mix well
by japhy (Canon) on Nov 01, 2001 at 08:15 UTC | |
by VSarkiss (Monsignor) on Nov 01, 2001 at 08:52 UTC | |
|
(jeffa) Re: Perl and C don't always mix well
by jeffa (Bishop) on Nov 01, 2001 at 08:10 UTC | |
by tilly (Archbishop) on Nov 01, 2001 at 08:30 UTC | |
|
Re: Perl and C don't always mix well
by kwoff (Friar) on Nov 01, 2001 at 08:04 UTC | |
|
Re: Perl and C don't always mix well
by Zaxo (Archbishop) on Nov 01, 2001 at 09:54 UTC | |
|
Re: Perl and C don't always mix well
by Sweeper (Pilgrim) on Nov 02, 2001 at 11:33 UTC |