in reply to Re^2: Excel::Writer::XLSX -> get the active sheet
in thread Excel::Writer::XLSX -> get the active sheet
If your subroutine also needs to know in which workbook that worksheet resides, hand it a reference to both the workbook and the worksheet (i.e. the wokbook obkject and the number of the worksheet). As it is impossible to access a worksheet without knowing in which workbook it resides, you will always know from which workbook each worksheet comes. Just save that information in an array or hash
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|