On 12/09/2006 04:32 PM, Lukky Perl wrote:
I'm trying to find a cell with a specific value. I keep getting the warning:
"Can't use an undefined value as a HASH reference". Here's the code:
[...]
 Find({What=>"$pa"})->{Row};
[...]

Even though $pa might be defined, its content might not be found within the spreadsheet, so Find() might return undef, and you can't use "undef" as a hash reference. The syntax "->{Row}" attempts to do this.




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to