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

Re: Show files on web page

by philcrow (Priest)
on Feb 28, 2007 at 16:07 UTC ( [id://602530]=note: print w/replies, xml ) Need Help??


in reply to Show files on web page

If this is a CGI, you should probably start with CGI, it handles forming the HTTP response expected by the server and browser. (For instance, you have no HTTP header in your sample.)

Second, you can't nest code in the heredoc like that. I'd advise multiple prints instead, or better yet use of some of the CGI.pm helpers.

Third, I'd suggest starting with a 'Hello world' page to make sure all the ducks are properly aligned, before trying to generate more interesting output.

Phil

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-03-28 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found