in reply to Win32/Linux portability
chomp removes whatever you tell it to via $/.
But you might be better off just using s/\s+\z//; instead of chomp;. Note: It removes trailing space and other whitespace in the process. That's usually a good thing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32/Linux portability
by thelycaeum (Initiate) on Aug 06, 2011 at 14:51 UTC | |
by Anonymous Monk on Aug 06, 2011 at 15:18 UTC | |
by thelycaeum (Initiate) on Oct 01, 2012 at 19:38 UTC | |
by jdporter (Paladin) on Oct 01, 2012 at 19:54 UTC | |
by thelycaeum (Initiate) on Oct 01, 2012 at 20:13 UTC | |
|