in reply to Stuck

First off, you should use CGI, this will be very helpful to you. Also, if you insist on doing it this way (which you shouldn't) you can print out $where to see what it contains.

Replies are listed 'Best First'.
Re: Re: Stuck
by jreades (Friar) on Dec 16, 2000 at 03:25 UTC

    You should absolutely print out $where -- I thought for a moment that $ENV{'QUERY_STRING'} might also return the '?' but a quick test showed that no, it doesn't. Nevertheless, you might have a zero-space character after "Front" that is preventing the match and unless you print it out, you'll never know.

    On a progammatic note, if you insist on writing our own output code and not using CGI, you should try to look form ways to reduce the duplication that is apparent in your code.

    For instance, both sections clearly output the content-type and some basic header information, so why is that wrapped up in your if/else statement?

    A good rule of thumb is that whenever you find yourself typing the exact same thing two or more times in a switch/subroutine sequence, you've probably got the switch/sub in the wrong place or it contains the wrong stuff.