|Welcome to the Monastery|
What is the purpose of '||=' in the example code for Spreadsheet::XLSXby vt220 (Scribe)
|on Nov 14, 2012 at 19:42 UTC||Need Help??|
vt220 has asked for the
wisdom of the Perl Monks concerning the following question:
I tried a modified version of the example code given in http://search.cpan.org/~dmow/Spreadsheet-XLSX-0.13-withoutworldwriteables/lib/Spreadsheet/XLSX.pm. It works very well and now I am trying to understand it.
I am not sure what these two lines are doing.
My guess is that if MaxRow or MaxCol are undefined then they are set to equal MinRow or MinCol respectfully. If that is true then under what circumstances is MAX not defined?
Also, I Data::Dumper::Simple'd $excel and it appears MinCol and MaxCol does not vary by row i.e., it is set once for each worksheet. So why execute it on each row? Or did I read the dump incorrectly?
Following is the code I ran:
Thanks in advance!