i'm using a file handle to open multiple files but I'm not getting the actual results - not knowing how many files that are opened. do you guys know any little code I can use?
Below is what I'm using but its giving me a bogus answer.
use strict;
my $count = 0 ;
while ( $count >= 0 )
{
$count++ ;
$FH = "FILE" . "$count" ;
open $$FH , "$file_path" or last ;
}
print "\n $count File opens\n" ;
Below is what I'm using but its giving me a bogus answer.
use strict;
my $count = 0 ;
while ( $count >= 0 )
{
$count++ ;
$FH = "FILE" . "$count" ;
open $$FH , "$file_path" or last ;
}
print "\n $count File opens\n" ;