http://www.perlmonks.org?node_id=1016132


in reply to Re^2: Open multiple file handles?
in thread Open multiple file handles?

Just in case someone stumbles on this who actually does for whatever reason need to dynamically open x number of file handles where the programmer has no way to predict what x will be....

It is easy. You use a scalar in your open i.e. open($fh, then just stick it onto an array or hash.