Help for this page
foreach(@files){ if(/\.csv$/i) { # if the filename has .csv at the end push(@csvfiles,$_); ... close(hanw); close(hanr); }
@$row = split(/,/, $line ); push @$sheet2 , $row; } ... { *print hanw join (',', @$row ),"\n"; }