Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Stuck on some real basic cgi perl

by philcrow (Priest)
on Apr 12, 2007 at 15:02 UTC ( [id://609682]=note: print w/replies, xml ) Need Help??


in reply to Stuck on some real basic cgi perl

What am I missing?
The short answer is headers. Usually people use CGI to handle details like that. It can also make the generation of html less painful.

If you don't want to use that module, you must print a header. Add this before the print in your sample above:

print "Content-type: text/html\n\n";
Phil
The Gantry Book is now available.

Replies are listed 'Best First'.
Re^2: Stuck on some real basic cgi perl
by o2bwise (Scribe) on Apr 13, 2007 at 14:40 UTC
    Hey Phil,

    No, it wasn't the header! I was getting the objects, it was just that my location code wasn't doing anything.

    I suppose my code looked misleading. The header statement was outside of the subroutine.

    But, thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-19 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found