in reply to problem with passing array and hash to sub-routine
process_article(*WFH, $locations{$article}, $lists{$list}); sub process_article { local(*FH)= shift; my($loc, $key)= @_; # then use print FH "anything" to print to your file # $loc->{keyword} instead of $location{keyword} # and $key->[index] instead of $keyword[index] }
|
|---|