Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^8: chop vs chomp

by Moron (Curate)
on May 14, 2007 at 14:54 UTC ( #615339=note: print w/replies, xml ) Need Help??

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

1&&2&&3 or 1||2||3 ?

^M Free your mind!

Replies are listed 'Best First'.
Re^9: chop vs chomp
by eric256 (Parson) on May 14, 2007 at 15:02 UTC

    All three, true, at the same time. In fact I can only think of one case where all three weren't true, and in that case I was using a module anyway because it is fixed with data.

    Eric Hodges
      Well you must know your projects of course - I have used Perl in only two fields - banking and GSM billing - a total of about 25 different systems over the years. In neither environment are there more than a few % of text files meeting those rules - I actually found the 3 of the current system (out of 141) precisely by searching for chomp() {I had no reason not to trust my predecessors in this regard but obviously needed to check anyway what type of file it was on) and comparing that with the total number of different files opened for input - the code was written mainly by predecessors over a period of 7 yrs.

      ^M Free your mind!

        You say yourself that you only use it in a limited field. It should then be obvious that your limited field is not representative of the entire use of perl (or chomp). This is what I've been saying since you started the thread. While your claims may be true, it is not true therefor that chomp is never useful to anyone else in the 100s of fields that you have not worked.

        Also, searching files and saying that you only used chomp in three files does not mean that chomp was only appropriate or useful just those three files, it only means it was useful in at least three files.

        Eric Hodges

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://615339]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2018-05-26 00:46 GMT
Find Nodes?
    Voting Booth?