in reply to (zdog) Re: more fun with references and hashes
in thread more fun with references and hashes

The problem seems to be this line ...
foreach my $pin ( keys %{$pin_hashref}){
Any ideas why (see above for error)

Replies are listed 'Best First'.
Re: Re: (zdog) Re: more fun with references and hashes
by myocom (Deacon) on May 30, 2001 at 23:05 UTC

    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