Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: About Filehandles

by ChOas (Curate)
on Jun 25, 2001 at 15:15 UTC ( [id://91238]=note: print w/replies, xml ) Need Help??


in reply to About Filehandles

Hey!

A two step option, that I would use: (pseudo-code)
open inputfile read file into a hash, using the SubCatagory as the key (I dunno if you need ALL the data, but I`m sure you know how to stuff it in the hash at the SubCat Key (make a list ref. or whatever you want.) close inputfile iterate over the keys in your hash (unique subcatagories) open Subcatagory file ...Do your thing on the file, using the data in your hash... close SubCatagory file
Only one filehandle open at a time...

Hope this helps...

GreetZ!,
    ChOas

2B||!2B==?;
print "profeth still\n" if /bird|devil/;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-18 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found