[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Perl quickie
- Subject: [ale] Perl quickie
- From: fletch at phydeaux.org (Fletch)
- Date: Fri Jan 16 23:28:41 2004
- In-reply-to: <1074269863.6441.11.camel@devel> (Chris Fowler's message of "16 Jan 2004 11:17:44 -0500")
- References: <1074269863.6441.11.camel@devel>
Of course TMTOWTDI, but using tr/// will probably be the fastest.
$_ = "a b\tc\nd";
y/ \t\n/_/s;
print; # prints "a_b_c_d"
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
| scary questions." -- Jules =(___)=
| U