in reply to Dereferencing within Hash Assignment

According to the documentation for Spreadsheet::Read, the ReadData function returns a reference to an array. Typically, you would assign it to a scalar, as demonstrated in the SYNOPSIS:
use Spreadsheet::Read; my $ref = ReadData('file.xls');

See also: perlreftut

Replies are listed 'Best First'.
Re^2: Dereferencing within Hash Assignment
by Comment (Novice) on Sep 24, 2010 at 20:05 UTC

    Apologies, I should have mentioned this earlier. I am actually doing this for multiple files. That is why I am putting the array reference into a hash. I made a related post on this here How Best to Handle Data. In the end, I have a hash with every key being a different file name and the value being the array reference from ReadData.