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!,

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