Passing hashes by reference.
From: krf (krf_at_Vega.com)
Date: 09/30/04
- Previous message: Gunnar Hjalmarsson: "Re: (when) is the ; required?"
- Next in thread: ./Rob &: "Re: Passing hashes by reference."
- Reply: ./Rob &: "Re: Passing hashes by reference."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Sep 2004 19:31:10 -0500
If I call a perl module with a hash variable, like so...
pass1(\%myhash);
The hash shows up in $_[0] and the debugger thinks it is a hash.
I can even use $_[0] as a hash over in the module.
Still normal so far.
But if I do %anotherhash = $_[0], I get an undef in %anotherhash.
Insights anyone??
krf
- Previous message: Gunnar Hjalmarsson: "Re: (when) is the ; required?"
- Next in thread: ./Rob &: "Re: Passing hashes by reference."
- Reply: ./Rob &: "Re: Passing hashes by reference."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|