Sometimes, it can help to explain what it is you're trying to do. Maybe we have solutions to your root problem, not your symptom.# Grab an array reference from Spreadsheet::ParseExcel my $OrigArray = $worksheet->Range("A76:B9107")->{'Value'}; # Iterate through that array reference for (@$OrigArray) { # At this point, the elements in $OrigArray are now each # put into $_. However, $_ seems to, itself, be an array # reference. (I've never used this feature of Spreadsheet::ParseEx +cel, # but I know the syntax explanation is correct, based on # the code in front of me. print ++$count, ":", join(",", @$_), "\n"; }
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In reply to Re: The @$ array construct
by dragonchild
in thread The @$ array construct
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |