XP is just a number | |
PerlMonks |
Re: Opening and closing files in loopby BrowserUk (Patriarch) |
on Oct 22, 2012 at 08:30 UTC ( [id://1000289]=note: print w/replies, xml ) | Need Help?? |
Is there a restriction in opening and closing files inside a loop? You aren't opening the files within the loop. select only makes a particular, already open, filehandle the default for print. But you are closeing those handles on the first pass, and they never get re-opened. Two possibilities:
Personally, I prefer the latter option. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|