If I'm working with two hashes which are actually HoH how would that work? This
is the snippet of code I'm working with:
sub timesheet {
my ($dept, $env) = @_;
if (exists $dept->{username}) {
open TIMESHEET,
">/work_reports/user/ops_timesheet_weekof_$endDate.txt";
> When passing two hashes into a subroutine how do I use them separately if
> they
> are placed into one flat list?
use strict;
my $hashref1 = \%hash1;
my $hashref2 = \%hash2;
go2sub ($hashref1,$hashref2);
sub go2sub{
my $hashref1 = shift;
my $hashref2 = shift;
my %hash1 = %$hashref1;
my %h
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 ($