Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by myocom (Deacon)
on May 30, 2001 at 23:05 UTC ( #84348=note: print w/replies, xml ) Need Help??


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

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).

Replies are listed 'Best First'.
Re: Re: Re: (zdog) Re: more fun with references and hashes
by diarmuid (Beadle) on May 30, 2001 at 23:10 UTC
    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://84348]
help
Chatterbox?
[moritz]: for short subs, I sometimes let them work on $_[0] directly
[Eily]: moritz but that should be fine unless you modify them
[choroba]: if you modify them, Perl will crash with "Modification of a read-only value attempted" for $1
[choroba]: I can't replicate the situation, but I remember it was very hard to debug

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2018-02-22 17:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (296 votes). Check out past polls.

    Notices?