in reply to Re: Re: Re: References for subroutines to Hashes in Hashes :)
in thread References for subroutines to Hashes in Hashes :)

aye great tip Ant,

I got for every key before I call the subroutine the correct value of the Hash. eg.

1234 HASH(0x403aab28)
but when I repeat this statement in the subroutine I receive nothing, completely nothing, how odd...

sub Show_analyst_row { my(%analyst_record)=%{@_}; print STDERR (join "\n", %analyst_record); }

above code generates nothing, I would think ther is something wrong in receiving the reference no?

Any idea's?

Thanks for looking
Merlijn

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: References for subroutines to Hashes in Hashes :)
by suaveant (Parson) on Aug 17, 2001 at 19:58 UTC
    ooh, I think your problem is here...
    my(%analyst_record)=%{@_};
    change this to
    my(%analyst_record)=%{$_[0]};
    or my(%analyst_record)=%{shift};

                    - Ant
                    - Some of my best work - Fish Dinner