Help for this page

Select Code to Download


  1. or download this
    sub new {
        my $class = shift;
    ...
    
        return $self;
    }
    
  2. or download this
        my @sheets = map {
            my $idx = $_->att('rels:id');
    ...
              ()
            }
        } $files->{workbook}->find_nodes('//s:sheets/s:sheet');
    
  3. or download this
        #my hack to only process worksheets matching the sheet filter
        my %sheet_filter=();
    ...
            }
        } grep {%sheet_filter ? defined $sheet_filter{$_->att('name')} : 1
    +} $files->{workbook}->find_nodes('//s:sheets/s:sheet');
    
  4. or download this
     
        #my hack to only return the list of sheet names
        if($self->{just_find_sheet_names}) {
    ...
          $workbook->{SheetCount} = scalar(@sheets);
          return $workbook;
        }