more useful options | |
PerlMonks |
Re^3: Removing everything before the first comma separator on each line of a text fileby soonix (Canon) |
on Sep 16, 2014 at 07:37 UTC ( [id://1100703]=note: print w/replies, xml ) | Need Help?? |
nope, split leaves the delimiters in after the LIMIT (just tested with perl 5.14.2). Admittedly, the documentation says "substrings (called "fields") that do not include the separator", so one could expect an implementation of split which filters out the delimiters from the "rest field", but I have heard the "P" in "Perl" stands for "practical" :-) your update about the comma after print$OFH is correct, of course...
In Section
Seekers of Perl Wisdom
|
|