in reply to Question about warnings and arrays
my $zz = param('team'); my $z = param('squad'); if (param) { $sd = "../data/data_mlb"; opendir( DIR, $sd) || die; while( ($filename = readdir(DIR))){ next if "$sd\/$filename" =~ /\/\./; ##skip . files push @dots, "$sd\/$filename"; } ## end of while @dots = sort @dots; closedir(DIR); for(my $a=0;$a<@dots;$a++){ open (FILE, $dots[$a]); push @foo, <FILE>; if ($a+1 eq @dots) { close FILE; open (FILE, $dots[$a]); push @foo2, <FILE>; } ## end of if close FILE; } ## end of for
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question about warnings and arrays
by Anonymous Monk on Aug 13, 2014 at 00:34 UTC | |
|
Re^2: Question about warnings and arrays
by Anonymous Monk on Aug 12, 2014 at 20:55 UTC | |
by tbone654 (Beadle) on Aug 12, 2014 at 21:16 UTC |