Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^7: chop vs chomp

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

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

They aren't the exception for everyone. In fact 1,2,3 are normaly true for any project i'm working on.

Eric Hodges

Replies are listed 'Best First'.
Re^8: chop vs chomp
by Moron (Curate) on May 14, 2007 at 14:54 UTC
    1&&2&&3 or 1||2||3 ?

    ^M Free your mind!

      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!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2018-06-20 19:16 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.