in reply to Your Favorite Heroic Perl Story
the set:
I was not long at my new job when i wrote some little tools for my personal ease, when my boss looked over my shoulder.
>> What is this?
<< That is perl. It is a language...
>> I know what is is, we donīt use that, itīs whacky.
>> But,
<< No but. We donīt use it!
>> Ah, ok. .oO(a*****e)Oo.
Two or three weeks later, i looked over the bosses shoulder while he tried to write a filter for a textfile (in VB) with heavy use of index(), substring() and ugly long if/else constructions. It ended up with 70 lines of code and three hours work.
I let him do that and in the meantime i prepared a one-liner in the
When i showed it to him he was first angry and then amazed. And since that day we use perl a lot and i am the companies "chief of perl".
holli, regexed monk
I was not long at my new job when i wrote some little tools for my personal ease, when my boss looked over my shoulder.
>> What is this?
<< That is perl. It is a language...
>> I know what is is, we donīt use that, itīs whacky.
>> But,
<< No but. We donīt use it!
>> Ah, ok. .oO(a*****e)Oo.
Two or three weeks later, i looked over the bosses shoulder while he tried to write a filter for a textfile (in VB) with heavy use of index(), substring() and ugly long if/else constructions. It ended up with 70 lines of code and three hours work.
I let him do that and in the meantime i prepared a one-liner in the
style (one line, 2 minutes).perl -n -e "print if //" infile>outfile
When i showed it to him he was first angry and then amazed. And since that day we use perl a lot and i am the companies "chief of perl".
holli, regexed monk
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Your Favorite Heroic Perl Story
by demerphq (Chancellor) on Jan 22, 2005 at 09:32 UTC | |
Re^2: Your Favorite Heroic Perl Story
by Anonymous Monk on Jan 24, 2005 at 15:56 UTC | |
by crenz (Priest) on Feb 13, 2005 at 15:09 UTC |
In Section
Meditations