Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: File Reading

by svenXY (Deacon)
on Oct 01, 2007 at 13:34 UTC ( [id://641883]=note: print w/replies, xml ) Need Help??


in reply to Re: File Reading
in thread File Reading

Hi,
++andreas1234567, yes, that will work, but you will always fill your memory with a lot of unnecessary data before you actually output any data.
Without saying too much (to not make the OP's homework too easy ;-)), I'd first find out which column is actually searched for, then go through the rest of the file line by line and print the only column that is requested.
No building up of a huge hash...
Regards,
svenXY

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 18:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found