Don't ask to ask, just ask | |
PerlMonks |
Re: Adding empty value in an Array!by davido (Cardinal) |
on Mar 10, 2021 at 18:40 UTC ( [id://11129418]=note: print w/replies, xml ) | Need Help?? |
I assume you are using Spreadsheet::ParseExcel. So I'll try to help with that assumption. First, though; what is this line doing?
$col10 will only ever contain one value, the integer 1. And you aren't using $col10 ever. And the loop only happens once. It seems broken. As for getting the value, it seems like this is what you want:
This will push into @cello either the value held in $cell0, or if there is no value (empty string, or undef), it will push in whatever is stored in $no2. Your question, as asked, leaves a lot of questions unanswered. Imagine a kid asking his parent "How do I get there?" And the parent has to ask "Where?" and then has to follow up with "Where are you now?", and then "What mode of transportation?" You know more about this problem than we do. Please be sure when you ask, that you provide enough context so that we don't have to guess where you are coming from and where you are going. Dave
In Section
Seekers of Perl Wisdom
|
|