Bug#435806: manpage example does not work

Jeremiah Foster jeremiah at jeremiahfoster.com
Fri Aug 3 11:38:58 UTC 2007


 From reading the Synopsis on CPAN, it looks as if you may have  
initialized the object in a manner that OLE::Storage_Lite may not  
understand. My understanding is that you need to present it with an  
XLS file of some kind;

   my $oOl = OLE::Storage_Lite->new("some.xls");

whereas ->new('test.msg') might not exist, be an XLS file, etc.

	Jeremiah

On Aug 3, 2007, at 12:22 PM, martin f krafft wrote:

> Package: libole-storage-lite-perl
> Version: 0.14-3
> Severity: normal
>
> I tried the following code, copying more or less directly from the
> manpage:
>
> use OLE::Storage_Lite;
> use strict;
> my $oOl = OLE::Storage_Lite->new('test.msg');
> my $oPps = $oOl->getPpsTree(1);
> $oPps->save('-');
>
> However, if I run it, I get
>
> Can't call method "save" on an undefined value at ole.pl line 5.
>
> I am not at all a perl coder, but I can't see the reason for the
> error.
>
> -- System Information:
> Debian Release: lenny/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
> Architecture: i386 (i686)
>
> Kernel: Linux 2.6.21-2-686 (SMP w/1 CPU core)
> Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages libole-storage-lite-perl depends on:
> ii  libio-stringy-perl            2.110-2    Perl5 modules for IO  
> from scalars
> ii  perl                          5.8.8-7    Larry Wall's Practical  
> Extraction
>
> libole-storage-lite-perl recommends no packages.
>
> -- no debconf information
> _______________________________________________
> pkg-perl-maintainers mailing list
> pkg-perl-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-perl-maintainers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20070803/f022891a/attachment.htm 


More information about the pkg-perl-maintainers mailing list