[ale] Perl quickie

Fletch fletch at phydeaux.org
Fri Jan 16 23:28:41 EST 2004


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



More information about the Ale mailing list