I have the following code:
my @product_access = @{ $products->{ $PosDetails->{"SalProductRef"}->[$i]}
{DetAccess_tab} };
if ( @product_access == 1 )
{
$revenue{ $products->{ $PosDetails->{"SalProductRef"}->[$i] }{DetFinanceCategory} }
{"Total"} += $PosDetails->{"SalSubTotal"}->[$i];
}
Right where I check the length of the array, I get a Use of uninitialized value in concatenation warning. It just seems a little odd to get that warning on that line. Why does it show this warning?
"foo$bar"into a concatenation ("foo" . $bar), but you don’t have code of that form either.Use of uninitialized value in concatenation (.) or string at ./test.pl line 156.and here it is again156 if ( @product_access == 1 )Very weird...