Problem with hashTable

G

Guillermo

If I make a loop to access a hash table everything works, but if I try
to access one element individually by specifying its key value an
error like this appears

Can't use string ("ADC0004") as a symbol ref while "strict refs" in
use at /var/www/html/test-gdiez/cgi-bin/ice.pl line 62.

print "$data{ADC0004}[0]";

I have also trying stablishing $index="ADC0004";

Thanks a lot
 
G

Gunnar Hjalmarsson

Guillermo said:
If I make a loop to access a hash table everything works, but if I
try to access one element individually by specifying its key value
an error like this appears

Can't use string ("ADC0004") as a symbol ref while "strict refs" in
use at /var/www/html/test-gdiez/cgi-bin/ice.pl line 62.

print "$data{ADC0004}[0]";

I have also trying stablishing $index="ADC0004";

Where is your code???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top