But once more, if i want pass 2 or more hashes to subroutine, is it the same?It was already in my answer, (although I minimally updated it silently for added clarity). Minimal example using a prototype:
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; sub foo (\%\%) { Dumper @_; } my %a=(foo => 1, bar =>2); my %b=(%a, bax => 3); print foo %a, %b; __END__
In reply to Re^3: pass a hash to subroutine
by blazar
in thread pass a hash to subroutine
by benlaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |