in reply to Re: Regex Confusion
in thread Regex Confusion
More precisely:$string =~ s/\n//g;
This safer version of "chop" removes any trailing string that corresponds to the current value of $/ (also known as $INPUT_RECORD_SEPARATOR in the English module).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex Confusion
by Kelly22 (Novice) on Feb 10, 2010 at 15:13 UTC |