Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Dear Venerable Monks

by NetWallah (Canon)
on Sep 14, 2015 at 20:07 UTC ( [id://1141973]=note: print w/replies, xml ) Need Help??


in reply to Dear Venerable Monks

As Anonymous Monk has indicated, you have seriously abused "$x" to the point where your code deteriorates to nonsense, and IMHO, unmaintainable, probably unworkable.

I would suggest a complete overhaul, using strict and warnings, declaring meaningful variable names.

To optimize memory consumpion, read the 1000-line file into memory, then read and process each 50-line file (1000 < 50 * 50).

Please re-post when you have a new outline, and request review when you have something that compiles, but may have a specific problem (which I'm sure you will encounter). This is part of the learning process.

        Software efficiency halves every 18 months, thus compensating for Moore's Law.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 17:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found