in reply to Re^2: Naming file handles with variables?
in thread Naming file handles with variables?
I don't thinks so. open $fileHandles[@fileHandles], ... 'creates' a new array element for the new file handle. You could instead:
open my $newFileHandle, ...; push @fileHandles, $newFileHandle;
to achieve the same effect.
If fileHandles were a hash instead of an array then keying by the file name would be appropriate however.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Naming file handles with variables?
by QM (Parson) on May 01, 2009 at 14:09 UTC | |
by GrandFather (Saint) on May 01, 2009 at 22:15 UTC | |
by TGI (Parson) on May 03, 2009 at 15:28 UTC | |
by GrandFather (Saint) on May 03, 2009 at 21:19 UTC | |
by QM (Parson) on May 04, 2009 at 20:44 UTC |