- or download this
my $h1;
my $h2;
$h2->{'bar'} = 1;
$h1->{'foo'} = $h2;
- or download this
void
mhash1(key1, h1)
...
I32 klen1 = strlen(key1);
if ( hv_exists(h1, key1, klen1) ) {
}
- or download this
void
mhash2(key1, h1, key2)
...
printf("%s\n", "found it!");
}
}
- or download this
#!/usr/bin/perl
use strict;
...
$h2->{'bar'} = 1;
$h1->{'foo'} = $h2;
MyTest::mhash2('foo', $h1, 'bar');