Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: chop vs chomp

by shmem (Chancellor)
on May 11, 2007 at 07:54 UTC ( [id://614840]=note: print w/replies, xml ) Need Help??


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

Anyone who tried to rely on carriege return (line completion) as an indication of file completion for commercial data provision would simply lose the business

Could you please point out where in the perl documentation is it stated that chop or chomp have anything to do with file completeness validation?

There is no instead of - chomp's functionality is professionally unacceptable from the start.

Sure - if you use it for the wrong purpose, and if you expect it to do things it doesn't. If a file has been checked for completeness and its lines were found suitable for chomp, then chomp is the right tool to use. It is not the other way round.

I'm looking forward to your rant on autovivification as another "professionally unacceptable functionality" in perl...

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found