Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Need help to fine tune perl script to make it faster( currently taking more than 30 minutes)

by fluticasone (Initiate)
on Nov 15, 2012 at 03:48 UTC ( #1003925=note: print w/ replies, xml ) Need Help??


in reply to Need help to fine tune perl script to make it faster( currently taking more than 30 minutes)

Well, use some combinations while you are fresh and new better than playing along into each mess you make with this code. Watch this, You are opening a file like there is butter "no problems"; then do not use "if" is for causing lots of funs but this does mess you up this moment. Instead use a While (<IN>) loop and use a "chomp" command assigned it to a variable "X" basically, you will remove any issues or string of hand to keep it on buffer just in case. Use File:Find library and make an array until satisfy. Finally go back and create or copy a file into a new one with new results. I'll see that you use new commands so you will get excited when you use perl next time. If you have not started yet, begin writng code slowly. And if you need me to write it for you; need to know file name and variable names. Love Perl as much as I do.


Comment on Re: Need help to fine tune perl script to make it faster( currently taking more than 30 minutes)
Re^2: Need help to fine tune perl script to make it faster( currently taking more than 30 minutes)
by Anonymous Monk on Nov 16, 2012 at 09:58 UTC
    Thanks for looking into the issue. the current perl version im my server is as below "This is perl 5, version 12, subversion 0 (v5.12.0) built for sun4-solaris". I was referring to few sample perl programs and trying to come up with my own code for the same.I would definitely prefer to use the most optimised and latest standard of coding Perl. if its not too much to ask, would you consider to re-write my code using the standards you mentioned. thanks again.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2014-12-27 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls