in reply to Re^2: Removing everything before the first comma separator on each line of a text file
in thread Removing everything before the first comma separator on each line of a text file

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...

  • Comment on Re^3: Removing everything before the first comma separator on each line of a text file
  • Select or Download Code