Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Stuck

by jreades (Friar)
on Dec 16, 2000 at 03:25 UTC ( [id://46969]=note: print w/replies, xml ) Need Help??


in reply to Re: Stuck
in thread Stuck

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found