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

Re^3: Unknow number show up

by flexvault (Monsignor)
on Apr 13, 2015 at 17:44 UTC ( [id://1123307]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Unknow number show up
in thread Unknow number show up

Dear Vkhaw,

The 'print' was to help you see what your 'system' call was doing, not to fix your problem. You have some excellent suggestions from other posters, integrate their suggestions and then post additional questions.

My current suggestion is to take some time to better understand your file inputs. ie:

  • Are the files sorted in any way? Could they be sorted for performance?
  • Can file2 be loading into an array in memory? That way you read the file once before the loop and then inside the loop, you read file1 a line at a time...Much faster!
  • Do your 's///' directly without re-calling Perl! Much, much faster!
And please keep asking questions, that's how we all learned!

Regards...Ed

"Well done is better than well said." - Benjamin Franklin

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found