Yes, but like all the others answered, there are ways to write Perl more efficiently, while not sacrificing the quality of the code. And the best idea was indeed to use a profiler, which I am analyzing right now
"Don't use Perl" might be correct, but it's not very useful for me.
"I think that Perl 5.10's new switch is a very cool feature, but I think it might be a bit slow and not the best idea when running a program that takes a couple of hours" would be a much more useful reply if it was true.
Like I said, I was looking for a few tips and ideas on how to increase my program's efficiency, and I did get a few tips and ideas that were indeed useful. And although in most cases Perl will not be the best language to use if you want something very very fast, I still think efficiency in Perl is an interesting and important question in at least some of the cases
BR
Guy Naamati
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.