Title: RE: Passing a hash of file names from File:Find

> but can't seem to figure out to pass a reference to
> this hash back to the calling function

sub hash_ref_test() {
    my %inside_hash = ( A => 11111, B => 22222);

    return (\%inside_hash);
}


my $outside_hash_ref;

$outside_hash_ref = hash_ref_test()

foreach (keys %{$outside_hash_ref}) {
    print "$_ => $$outside_hash_ref{$_}\n";
}

Reply via email to