good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Stuckby jreades (Friar) |
on Dec 16, 2000 at 03:25 UTC ( [id://46969]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|