in reply to uninitialized value on hash lookup (was: hash problem)

It's pretty difficult to call without having the input data to test against, but if $myhash{$Line} is an uninitialized, then either the regex in the do_hash function failed to assign a value to $Data, or the value of $Line in the main body regex doesn't match up to your keys. If the problem is the former, you likely have some badly-formed data in file_data. If the problem is the latter, I would guess badly-formed data in data_list.


_______________
D a m n D i r t y A p e
Home Node | Email

Replies are listed 'Best First'.
Re: Re: hash problem
by Anonymous Monk on May 21, 2002 at 16:58 UTC

    Thank you for your help!
    My first file is a table:
    Line Field Dvalue
    a123 A1 12.83
    a124 A1 9.68
    ...
    and second file is a table too:
    Name Data
    a123 acgt...(whole sequence)
    a124 catt...
    both table all use tab to separate each column. Please help!
Re: Re: hash problem
by Anonymous Monk on May 21, 2002 at 20:09 UTC
    The file_data part sequence is about 4kb. acgttaga...
Re: Re: hash problem
by Anonymous Monk on May 22, 2002 at 14:02 UTC
    I'd like to send you whole data set, would you please give me e-mail address? I test the program this morning using simple data set, it works good. Thanks
      Sure, I don't mind. It's in my sig.
      _______________
      D a m n D i r t y A p e
      Home Node | Email