![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
(tye)Re: quoted-printable, and ugly codeby tye (Sage) |
on Feb 22, 2001 at 20:20 UTC ( #60232=note: print w/replies, xml ) | Need Help?? |
Lots of items already covered here. But I felt compelled to note that s/^\w+:(.*)$/$1/gs nearly makes me cringe (which is silly because it really isn't "bad" at all). First, s/^\w+://gs gets the point across much better, I think. Second, can't headers have "-" in them so don't you want [-\w]+? Third, I'd strip whitespace after the ":". So: - tye (but my friends call me "Tye")
In Section
Seekers of Perl Wisdom
|
|