Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Miscelaneous thoughts

by Fletch (Bishop)
on Apr 15, 2002 at 04:07 UTC ( [id://159091]=note: print w/replies, xml ) Need Help??


in reply to Optimizing Output

  • Get it working first, optimize (or refactor if you want to sound hep :) afterwards.
  • Keep in mind that if you're interpolating variables you've implicitly used the . operator
  • Heredocs (<<EOT) are much more readable (IMHO) than fifteen gazillion .= lines (I mean come on, this is perl not C or Java)

Update:As was pointed out to me in a msg, strictly speaking refactoring isn't optimization; however refactoring may improve performance by replacing an inefficient implementation with a better designed one. Pardon me for attempting humor. :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-20 15:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found