Hi guys..
I'm stuck with a flat file | seperated fields database which is huge actually. and I want to generate HTML files based on the subcategory, and stuff all the other information for each subcategory in the specific file..
So my bet was to read the file line by line and create subcategory-named-files whenever a new subcategory is encountered, because the subcategories aren't sorted.
anyway, can I create filehandles that evaluate from a variable? and if I can, I might end up with about 50 filehandles opened at the end of the operation which I have to close, can I close every opened filehandle? or do I have to specify a close() for each one?
Here's an example of the data file, I trimmed down the info and messed it up.
ID|Category|SubCategory|Code|Description|Picture ex: 0|OFFICE EQUIPPMENT|PEN|PDS01|an ordinary pen|pen.gif 1|OFFICE EQUIPPMENT|PEN|PDS02|another pen|pen2.gif 2|OFFICE EQUIPPMENT|PAPER|PA003|white sheets to write on|paper.gif 3|OFFICE EQUIPPMENT|PEN|PDD50|the greatest pen|pen50.gif 4|OFFICE EQUIPPMENT|PEN|PDS01|an ordinary pen|pen.gif
In reply to About Filehandles by Chady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |