in reply to extracting lines from a string - while ignoring the \n character
I tried to muck with $/ for a while before realising that such an approach would only work if the string was being read from somewhere rather than being located in the source code.
Will the string be defined inline in your real usage case?
-David
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: extracting lines from a string - while ignoring the \n character
by codeacrobat (Chaplain) on Oct 29, 2007 at 19:56 UTC | |
by erroneousBollock (Curate) on Oct 30, 2007 at 02:04 UTC |