Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

(zdog) Re: more fun with references and hashes

by zdog (Priest)
on May 30, 2001 at 22:59 UTC ( #84344=note: print w/ replies, xml ) Need Help??

in reply to more fun with references and hashes

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


instead of:


Hope that works.

Zenon Zabinski | zdog |

Comment on (zdog) Re: more fun with references and hashes
Select or Download Code
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 ++


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://84344]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-10-14 04:33 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (320 votes), past polls