Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Super Duper Inefficientby Earindil (Beadle) |
on Jun 20, 2003 at 12:54 UTC ( [id://267549]=perlquestion: print w/replies, xml ) | Need Help?? |
Earindil has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, I don't believe it is possible to make the following code any worse. I've been hacking away at perl for many years but am still less than an amateur. Could you please take a look and suggest a better way of looping through the data (or avoiding the loop all together). In a worse case, I loop through several thousand lines of the same data 80+ times. Ugly. This snippet of a larger script is used to draw web posts/reqs and opens for a large number of servers using the wonderful Ploticus graphing program. @servers is a list of 60+ webservers @DATA web server data pulled from the DB in 5 minute increments The server in the DB is identified by a HOSTID so I load %SERVER with all the HOSTIDs. IE $SERVER{WEB1}=1234 ----
update (broquaint): changed <pre> to <code> tags
Back to
Seekers of Perl Wisdom
|
|