Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Warnings Re: Using HTML::TableExtract

by Zaxo (Archbishop)
on Sep 07, 2001 at 07:38 UTC ( [id://110821]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://110821]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-23 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found