Problem with hashTable

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guillermo

    Problem with hashTable

    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{ADC0 004}[0]";

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

    Thanks a lot
  • Gunnar Hjalmarsson

    #2
    Re: Problem with hashTable

    Guillermo wrote:[color=blue]
    > 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{ADC0 004}[0]";
    >
    > I have also trying stablishing $index="ADC0004 ";[/color]

    Where is your code???

    --
    Gunnar Hjalmarsson
    Email: http://www.gunnar.cc/cgi-bin/contact.pl

    Comment

    Working...