Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 7ddda6ca02ee6b424ec4f1fdc90bca6d > files > 9

perl-OLE-Storage_Lite-0.190.0-5.mga5.noarch.rpm

# OLE::Storage_Lite Sample
# Name : smpadd.pl
#  by Kawai, Takanori (Hippo2000) 2000.12.21, 2001.1.4
#=================================================================
use strict;
use OLE::Storage_Lite;
my $oOl = OLE::Storage_Lite->new('test.xls');
my $oPps = $oOl->getPpsTree(1);
die( "test.xls must be a OLE file") unless($oPps);

my $oF = OLE::Storage_Lite::PPS::File->new(
		    OLE::Storage_Lite::Asc2Ucs('Last Added'), 
		'ABCDEF');
my $oF2 = OLE::Storage_Lite::PPS::File->new(
		    OLE::Storage_Lite::Asc2Ucs('Length 0'), 
		'');
push @{$oPps->{Child}}, $oF;
push @{$oPps->{Child}}, $oF2;
$oPps->save('add_test.xls');