Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: (zdog) Re: more fun with references and hashes

by diarmuid (Beadle)
on May 30, 2001 at 23:02 UTC ( #84346=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://84346]
help
Chatterbox?
[LanX]: copy and paste the text into your Petroza's scratchpad please
[Petroza]: yes I'll do that. instead of the url I'll write "link"
[LanX]: darn my pc is restarting for updates

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2017-10-17 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (233 votes). Check out past polls.

    Notices?