I am basically trying to pass a string and a hash to a routine in perl.
sub coru_excel {
my(%pushed_hash, $filename) = @_;
print Dumper(%pushed_hash);
}
But the data seems to be mixed. Discarded data also includes $filename. here is the result.
...................
$VAR7 = 'Address';
$VAR8 = [
'223 VIA DE
................
];
$VAR9 = 'data__a.xls' <----- $filename
$VAR10 = undef;
$VAR11 = 'DBA';
$VAR12 = [
'J & L iNC
..................
];
This is how I called the subroutine.
coru_excel(%hash, "data_".$first."_".$last.".xls");
source
share