On 5/12/07, Mathew Snyder <[EMAIL PROTECTED]> wrote:
When passing two hashes into a subroutine how do I use them separately if they
are placed into one flat list?

Mathew
--
Keep up with me and what I'm up to: http://theillien.blogspot.com

Use references:

func(\%h1, \%h2);

sub func {
   my ($h1, $h2) = @_;

   print "h1\n";
   for my $key (%$h1) {
       print "$key => $h1->{$key}\n";
   }

   print "h2\n";
   for my $key (%$h2) {
       print "$key => $h2->{$key}\n";
   }
}

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to