Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^9: chop vs chomp

by eric256 (Parson)
on May 14, 2007 at 15:02 UTC ( #615346=note: print w/replies, xml ) Need Help??

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

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

Replies are listed 'Best First'.
Re^10: chop vs chomp
by Moron (Curate) on May 14, 2007 at 15:39 UTC
    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
        Sure but I have also observed code used in other industries and worked for a few months in a third field with Perl. In addition I have worked in a variety of other industries during the preceding 20 years of other languages and of course I must know what kind of files were used in other cases. The only way I can make up my own mind would be to see more code from other people from a wider industrial range, although given the rather silly way this thread has gone I would need to be something like a fly on the wall of course ;)

        ^M Free your mind!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://615346]
[choroba]: :-)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2018-02-21 14:07 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (280 votes). Check out past polls.