Hi,
I'm passing a hash and an array to a sub-routine with:
process_article(*WFH, %{$locations{$article}}, @{$lists{$list}});And the sub-routine accepts them with:
my $fh=shift; my (%locations, @keywords)=@_;
The problem is that they somehow get mixed up in the sub-routine. Any way to fix that (without using references)? (yes, I'm using strict).
-----------------------------------
Any comments about coding style are welcome.In reply to problem with passing array and hash to sub-routine by dannoura
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |