in reply to more fun with references and hashes

To access the hash content thorught the hash reference, you have to do:

$$pin_hashref{$pin}

instead of:

$pin_hashref{$pin}

Hope that works.

Zenon Zabinski | zdog | zdog7@hotmail.com

Replies are listed 'Best First'.
Re: (zdog) Re: more fun with references and hashes
by diarmuid (Beadle) on May 30, 2001 at 23:02 UTC
    The problem seems to be this line ...
    foreach my $pin ( keys %{$pin_hashref}){
    Any ideas why (see above for error)

      The error you're getting makes me think that you're calling your subroutine like this: duplicate_probe_signals(%clocks). That will pass %clocks by value.

      Since your sub wants a reference, you should call it like this: duplicate_probe_signals(\%clocks).

        yep... thanks ... It was a combination of both your suggestions ++

        Diarmuid