[ale] String -> Number
Keith R. Watson
keith.watson at gtri.gatech.edu
Mon Mar 17 15:20:05 EST 2003
At 02:31 PM 3/17/2003 -0500, Christopher Fowler wrote:
>Darn!
>
>chomp() strips NL, Not CR's. I've got a lingering CR on the end. How
>can I remove that one?
>
This will remove all CR and LF characters from all locations in $string.
$string =~ s/[\r\n]+//g;
keith
-------------
Keith R. Watson GTRI/ITD
Systems Support Specialist III Georgia Tech Research Institute
keith.watson at gtri.gatech.edu Atlanta, GA 30332-0816
404-894-0836
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list