|We don't bite newbies here... much|
Re^2: globbing filehandles in arraysby why_bird (Pilgrim)
|on Jan 26, 2009 at 08:14 UTC||Need Help??|
Well for starters you're trying to read from filehandles you've opened for writing.Yes, this is true.. sorry about that (I've edited it now), it used to seem obvious to me which was which, but recently I've been getting them all backwards with the result that I've managed to write over files that I meant to read. Clever. At least I know I'm prone to do this kind of think and back up files before using them in a perl script!!
(And you're using C-style for loops, but that's more of a style issue :).
In mitigation, defence or whatever, I've been writing a lot of C lately. But out of interest, what is the stylistic 'problem' with that style of for loop? I kind of prefer it but am open to (logical :P) reasons why there are better ways.Cheers
Those are my principles. If you don't like them I have others.
-- Groucho Marx