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

Re: [ID 20011003.008] assoc array index strange acting

From:
Michael G Schwern
Date:
October 3, 2001 16:17
Subject:
Re: [ID 20011003.008] assoc array index strange acting
Message ID:
20011003191715.C27347@blackrider
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
> INPUT 
> 
> 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   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>	     Kwalitee Is Job One
BOFH excuse #281:

The co-locator cannot verify the frame-relay gateway to the ISDN server.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About