in reply to Re^12: protect excel file in perl script
in thread protect excel file in perl script
Try
poj#!/usr/bin/perl -w use strict; use Spreadsheet::ParseExcel; my $file = '/home/muthum/excel1.xls'; my $parser = Spreadsheet::ParseExcel->new( Password => 'secret' ); my $workbook = $parser->Parse($file); if ( !defined $workbook ) { die $parser->error(), "\n"; } for my $worksheet ( $workbook->worksheets() ) { my $cell = $worksheet->get_cell( 0, 0 ); next unless $cell; print "[A1] = ", $cell->value(),"\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^14: protect excel file in perl script
by arunks (Novice) on Mar 16, 2017 at 14:17 UTC | |
by marto (Cardinal) on Mar 16, 2017 at 14:22 UTC | |
by poj (Abbot) on Mar 16, 2017 at 15:17 UTC | |
by arunks (Novice) on Mar 22, 2017 at 12:00 UTC | |
by marto (Cardinal) on Mar 22, 2017 at 12:11 UTC | |
by poj (Abbot) on Mar 22, 2017 at 12:57 UTC | |
by arunks (Novice) on Mar 22, 2017 at 13:12 UTC | |
|