in reply to Printing URL to webpage

Probably because your script is more a mess than a Perl Script. $fields{'continue'} may be an empty string, or undef, not even existing in the hash. You won't find out, you haven't even enabled warnings and the strict pragma. Where does %fields come from? Hmm, it's coming from an a Broken CGI Parser...

Before you go on, read use CGI or die, Idiotic Perl, `perldoc strict`, `perldoc warnings`, `perldoc perlsub` (because you didn't get Perl 5 subroutines), `perldoc perlstyle` (because it helps in general).

I hope you don't wamnt to spread this "thing" over the web as one could guess from these comments at its beginning. Don't, it is bad.

--
http://fruiture.de

Replies are listed 'Best First'.
Re: (nrd) Re: Printing URL to webpage
by newrisedesigns (Curate) on Nov 06, 2002 at 15:31 UTC

    The comments in the code are from bignosedbird.com. They have resources online for learning HTML and other aspects of the web. Their HTML stuff isn't bad, but they are definitely not the place for learning Perl.

    If you absolutely need a script for something off the Internet, don't trust MSA or bignosebird or any generic "learning" sites, because in my experience they slaughter Perl. See: http://nms-cgi.sourceforge.net/

    John J Reiser
    newrisedesigns.com

Re: Re: Printing URL to webpage
by Deanimal (Acolyte) on Nov 06, 2002 at 15:37 UTC
    fruiture,
    Thanks for pointing me to those articles; I'll study them.

    1. The script is a "mess" because it came that way.
    2. The script is not mine, as you seem to think.
    3. $fields{'continue'} does work for another link in the same script, so I don't understand what you mean when you say it may be empty, undef, or not existing.