Front page | perl.perl5.porters |
Postings from October 2003
Re: new slurp module
Thread Previous
|
Thread Next
From:
Casey West
Date:
October 24, 2003 09:15
Subject:
Re: new slurp module
Message ID:
20031024161830.GW82504@geeknest.com
It was Friday, October 24, 2003 when Steve Hay took the soap box, saying:
: Abigail wrote:
:
: >If we add File::Slurp
: >to the distribution, we should also add String::ChopChop which replaces
: >the two-line idiom
: >
: > $str =~ s/^\s+//;
: > $str =~ s/\s+$//;
: >
: >with the two-liner:
: >
: > use String::ChopChop;
: > chopchop ($str);
: >
: >After all, it's a common operation, but often done in ugly or inefficient
: >ways.
: >
: What's wrong with the one-liner
:
: $str =~ s/^\s+|\s+$//g;
Whoa, Abigail and I should be having a flash-back moment right no.
http://groups.google.com/groups?q=group:comp.lang.perl.misc+Casey+Tweten+FAQ+Abigail&hl=en&lr=&ie=UTF-8&selm=slrn7v4hr3.avl.abigail%40alexandra.delanet.com&rnum=1
# or
http://xrl.us/yld
This has made my day. :-)
Casey West
--
Shooting yourself in the foot with Visual Basic
You'll really only appear to have shot yourself in the foot, but
you'll have so much fun doing it that you won't care.
Thread Previous
|
Thread Next