Skip to main content.
home | support | download

Back to List Archive

Excel parser again

From: Bucharow Leonard <Leonard.Bucharow(at)not-real.DLE-M.Bayern.de>
Date: Thu Aug 28 2003 - 08:05:34 GMT
Hi Bill,

thanks for the note, that there is an example in SpiderConfig.pl for using
Swish::Filter
(unfortunately not for using Swish::Filters::XLtoHTML)!

I'm trying to test Swish::Filter with Shell again. Now I get debugging
messages
(I've set $testing to 1; in Filter.pm).

> # perl Filter.pm test /usr/home/swish-e/test/excel.xls
> Testing mode for Filter.pm
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> No SWISH filters found
> 1550 Error- /usr/home/swish-e/test/excel.xls: Can't use an undefined value
as an ARRAY reference at Filter.pm line 341.

I mean I've set the path:
> # export PERL5LIB='/usr/local/swish-e/lib/SWISH/Filters'

Can you help me with this error please?

Other question:
In Filter.pm in %mime_types is originally no Mime Type for excel:

# Here's some common mime types
my %mime_types = (
    doc   => 'application/msword',
    pdf   => 'application/pdf',
    html  => 'text/html',
    htm   => 'text/html',
    txt   => 'text/plain',
    text  => 'text/plain',
    xml   => 'text/xml',
    mp3   => 'audio/mpeg',
);

Should I add a mime type for xcel files?

Thanks much for wasting your time for me
Leo
Received on Thu Aug 28 08:05:49 2003