in reply to Using HTML::TableExtract

A minor point having nothing to do with HTML::TableExtract.

You should change your splatline to unix form:

#!/usr/bin/perl -w
and make it the first line of the script. Windows doesn't pay attention to the splatline, but perl for Windows does read options from it. You are probably not seeing warnings that would help you debug.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Warnings Re: Using HTML::TableExtract
by grinder (Bishop) on Sep 07, 2001 at 14:37 UTC

    That is not the case if you are setting the -T switch for taint checking -- the shebang line must point to the Perl interpreter, otherwise your script will fail. So it's a good habit to get into. You can use forward slashes (#! c:/perl/bin/perl.exe -w), so it doesn't have to look too ugly.

    This does depend on the way the script is called, for instance, if you say perl -T script it'll work fine, but if you use Win32 file associations (such as running from Win32 Apache -- which is where I was bitten by this), the script will fail. It took me ages to track that down when it first happened. In fact, I didn't solve it. It was only much later reading the AS documentation that I serendipitously found the solution.

    --
    g r i n d e r