Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Short routines matter more in OO?

by hsmyers (Canon)
on Oct 13, 2003 at 14:31 UTC ( #298842=note: print w/replies, xml ) Need Help??


in reply to Short routines matter more in OO?

This is slightly OT, but I've found a useful seat of the pants metric for good/bad and in between is 'how hard is this code to maintain?' Given the number of long portions of code that I've had to chop up into smaller pieces my general inclination is to say 'short is mostly better'.

--hsm

"Never try to teach a pig to sing...it wastes your time and it annoys the pig."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://298842]
help
Chatterbox?
[Wcool]: hi
[Wcool]: I have this really weird behaviour of printing lines in a file
[Wcool]: Iam on linux and open a file, do some subs and then write it to a new file
[Wcool]: all fine
[Wcool]: but when I add something like this
[Wcool]: $lLine .= "$DECIMAL_FORMAT\n ";
[Wcool]: suddenly all the line are printed with ^M
[choroba]: sounds like MSWin text format
[Corion]: Wcool: You are reading a file with Windows newlines. Use s/\s+$// on each line

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2018-01-16 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (183 votes). Check out past polls.

    Notices?