in reply to catching \n
You are probably looking for /g, substitute globally. Your example will only get the first \r and \n in $blah. Just use something like this which will also handle DOS style returns
$blah =~ s/\r?\n/<br>/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re2: catching \n
by bbfu (Curate) on Aug 07, 2003 at 01:38 UTC | |
by tye (Sage) on Aug 07, 2003 at 15:49 UTC |