Problem with hashTable

Discussion in 'Perl' started by Guillermo, Mar 4, 2004.

  1. Guillermo

    Guillermo Guest

    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
    Guillermo, Mar 4, 2004
    #1
    1. Advertising

  2. Guillermo wrote:
    > 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???

    --
    Gunnar Hjalmarsson
    Email: http://www.gunnar.cc/cgi-bin/contact.pl
    Gunnar Hjalmarsson, Mar 4, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jonathan Wolfson

    vbc compilation fails when using Hashtable

    Jonathan Wolfson, Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    543
    Tu-Thach
    Jun 27, 2003
  2. =?Utf-8?B?QUQ=?=

    Hashtable problem

    =?Utf-8?B?QUQ=?=, Feb 25, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    484
    Alvin Bruney [Microsoft MVP]
    Feb 25, 2005
  3. Ralf Bednarz

    hashtable problem

    Ralf Bednarz, Jul 15, 2003, in forum: Java
    Replies:
    5
    Views:
    566
    Ralf Bednarz
    Jul 17, 2003
  4. M
    Replies:
    22
    Views:
    3,523
    Michael Borgwardt
    Jul 15, 2004
  5. Replies:
    3
    Views:
    409
    oh_maan
    Jun 19, 2007
Loading...

Share This Page