bobbyboy has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re (tilly) 1: fetch.pl
by tilly (Archbishop) on Mar 30, 2001 at 00:31 UTC
    Donning PSI::ESP I would say that it means that something went wrong, and you do not understand the error message. (Possibly it could be better, for instance it could use die and you would have a file and line number to assist you.)

    If you have basic Unix utilities available I would go to wherever your sourcecode is and type:

    grep 'Reading Header Failed' *
    If you are on a Windows system you will need to use " instead of ', and you will need to have the grep utility installed. You can get it from the PPT project if you don't have it already.

    That will not tell you what went wrong, but it will help you find where the error message came from. By trying to understand the source code there, you should be able to puzzle out what was expected for a header and (after some work) why it didn't arrive.

(tye)Re: fetch.pl
by tye (Sage) on Mar 30, 2001 at 00:35 UTC

    Sounds a bit like CGI and "File not found" in CGI often means that your "current working directory" isn't what you think it is (it varies widely between different web servers, etc.).

    Perhaps you should use full paths or use chdir to set your current working directory early in your script.

            - tye (but my friends call me "Tye")
Re: fetch.pl
by Anonymous Monk on Mar 30, 2001 at 02:11 UTC
    It sounds like your shebang line is fudged up. It might be #!/usr/bin/perl when your perl may be installed in #!/usr/local/bin/perl or something to that effect.