in reply to Win32::ODBC results in hash

Hashes are assigned data in many ways:
%hash( $key => $value);
That is a syntax error. I think you mean:
%hash = ( $key => $value);

Update: This should have been a response to Re: Win32::ODBC results in hash.

Replies are listed 'Best First'.
Re^2: Win32::ODBC results in hash
by drodinthe559 (Monk) on Mar 22, 2010 at 19:56 UTC
    I don't why, but I get syntax error. I receive the follow syntax error: "%hash("
    while ($connection->FetchRow()) { %dataRow = $connection->DataHash(); %hash( $key => $dataRow{Client_ID} ); };
      I finally got it to work. Thanks for your help.
      my %hash = (); while ($connection->FetchRow()) { my %dataRow = $connection->DataHash(); $hash{ $dataRow{Client_ID} } = $dataRow{Contact_Information}; };