Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: chop vs chomp

by Moron (Curate)
on May 11, 2007 at 07:28 UTC ( [id://614831]=note: print w/replies, xml ) Need Help??


in reply to Re: chop vs chomp
in thread chop vs chomp

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: chop vs chomp
by herveus (Prior) on May 11, 2007 at 11:24 UTC
    Howdy!

    If you are reading a CSV file, the general case would allow newlines to be embedded in fields. chomp() is silly. Rolling your own is silly unless you need to do it as an exercise. Use the Module, Luke! Raising the CSV specter is a red herring in the context of discussing the appropriate use of chomp.

    yours,
    Michael

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-18 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found