breadbonda has asked for the wisdom of the Perl Monks concerning the following question:
This is code snippet Where i am reading a xls file called delaytemplate
my $parser_delaytemplate_oop = Spreadsheet::ParseExcel::Save +Parser->new(); my $parser_delaytemplate_handler = $parser_delaytemplate_oop->Pars +e($open_thisoo) or die "Unable to open $open_thisoo\n, $!"; my $delaytemplate_me = $parser_delaytemplate_handler->worksheet(0) +; for(my $i = 0 ; $i < 1000000 ; $i++) { my $parser = $delaytemplate_me->get_cell(0, $i+1); if($parser) { $corners_xls[$counter_corners_xls++]= $parser->value(); } else { last; } }
This snippet is in a subroutine which is called around 500 to 3000 times. When i am calling this code snippet for 500 times, there are no errors. When i am calling this code snippet for more times like around 3000, then all the values are showing up as unintialized, despite me reading the same xls file in both cases. In each subroutine call, I am reading the same xls file multiple times. Does my library provide any limitations on number of times I can read the same xls file?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: xls file number of reads limit?
by choroba (Cardinal) on Oct 07, 2020 at 16:58 UTC | |
|
Re: xls file number of reads limit?
by perlfan (Parson) on Oct 08, 2020 at 00:20 UTC | |
by AnomalousMonk (Archbishop) on Oct 08, 2020 at 15:26 UTC | |
by Anonymous Monk on Oct 08, 2020 at 05:54 UTC | |
by perlfan (Parson) on Oct 08, 2020 at 13:57 UTC | |
by breadbonda (Initiate) on Oct 11, 2020 at 15:28 UTC | |
|
Re: xls file number of reads limit?
by wazat (Monk) on Oct 10, 2020 at 21:01 UTC |