in reply to Re: Win32::ODBC results in hash
in thread Win32::ODBC results in hash

Client_ID is the field I want to use as the key.

Replies are listed 'Best First'.
Re^3: Win32::ODBC results in hash
by sierpinski (Chaplain) on Mar 22, 2010 at 19:23 UTC
    In that case you'd want to do something like this:
    %hash{"Client_ID"} = $dataRow;
    This will store the value of $dataRow into %hash, with the index (key) being the string "Client_ID".

    I highly recommend getting Data::Dumper from CPAN so you can dump your data structure to a scalar and print it. It makes it very easy to see when you've done something wrong, and for being new to hashes, I think it's a great tool. I use it all the time.