develooper Front page | perl.perl5.porters | Postings from October 2001

Re: [ID 20011003.008] assoc array index strange acting

Michael G Schwern
October 3, 2001 16:17
Re: [ID 20011003.008] assoc array index strange acting
Message ID:
On Wed, Oct 03, 2001 at 03:04:23PM -0700, Warren L Dodge wrote:
> -----------------------------------------------------------------
> [Please enter your report here]
> Using a large assoc array indexing method I get a strangeness on a
> certain index.
> HEre is the index value
> p $chips
> First use it as a variable
> p ( defined $chip_power_info{$refdes}->{$path}->{$tpn}->{$pack_type}->{$file}->{$chips} )
> (nothing printed)
> Now print it as the value it contains
> p ( defined $chip_power_info{$refdes}->{$path}->{$tpn}->{$pack_type}->{$file}->{INPUT} )
> 1
> Is this a strange case of reserved word?

INPUT isn't a reserved word.  I have a feeling it's a simple bug in
your program or perhaps the debugger.  If you could provide the code
that produces the problem, we can look into it.


Michael G. Schwern   <>
Perl6 Quality Assurance     <>	     Kwalitee Is Job One
BOFH excuse #281:

The co-locator cannot verify the frame-relay gateway to the ISDN server. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About