in reply to Special behavior for LF and CR in RegExs?
The “doesn’t DWIM” snip seems to be missing /g modifiers. Posting accident, or is that so in your code as well?
Anyway, if split /^/m works, it seems that split /\n/ also should. Does it not?
You can minimise that code quite a bit, btw, by simply saying chomp( @records = split /^/xms, $data );
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Special behavior for LF and CR in RegExs?
by Argel (Prior) on Jan 05, 2006 at 01:19 UTC | |
by Aristotle (Chancellor) on Jan 05, 2006 at 01:39 UTC | |
by tye (Sage) on Jan 05, 2006 at 05:31 UTC | |
by Aristotle (Chancellor) on Jan 05, 2006 at 12:50 UTC |