Hi, I need to pass a scalar and a hash of arrays to a function. I've tried several things without success. I thought it might be:
myFunction($scalar, \%hash);
...
sub myFunction {
my $scalarVal = shift(@_);
my %hashVal = %@_;
...
}
This doesn't work. Does anyone have any thoughts? Keep in mind this is a hash of arrays, and I am using "use strict;".
Thanks,
-bitwise
myFunction($scalar, \%hash);
...
sub myFunction {
my $scalarVal = shift(@_);
my %hashVal = %@_;
...
}
This doesn't work. Does anyone have any thoughts? Keep in mind this is a hash of arrays, and I am using "use strict;".
Thanks,
-bitwise