Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Removing everything before the first comma separator on each line of a text file

by soonix (Canon)
on Sep 16, 2014 at 07:37 UTC ( [id://1100703]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1100703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-18 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found