Don't ask to ask, just ask | |
PerlMonks |
Re: Using more than one filehandleby matija (Priest) |
on Mar 24, 2004 at 14:41 UTC ( [id://339412]=note: print w/replies, xml ) | Need Help?? |
When you say "at once" do you mean, "at the exact same moment in time", or do you mean "I need to files opened at the same time"? If the former, no single CPU computer can do it, but some multiprocessor machines may be able to, provided their operating system supports it. If the later (more probable), then there is no problem: At this point you have two files open and you can read from the first with <FILE1> and from the second with <FILE2>. Or, if you open the files for writing, you can write to them like this:
In Section
Seekers of Perl Wisdom
|
|