[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] String -> Number
- Subject: [ale] String -> Number
- From: keith.watson at gtri.gatech.edu (Keith R. Watson)
- Date: Mon, 17 Mar 2003 15:20:05 -0500
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