On Thu, 2 Feb 2006, Elliot Holden wrote:
> This is what I am typing at the Terminal prompt:
>
> perl -w first.cgi
>
> first.cgi being the name of my file.
What output, if any, are you getting? It seems to work fine here:
$ perl -c first.cgi
first.cgi syntax OK
$ perl -w first.cgi
Content-type: text/html
<html>
<head><title>First Script</title></head>
<body>Congratulationss</body>
</html>
$
If that isn't what you got, what happened instead?
FYI, I'd assume that the book you're working with will get in to this,
but it's far more common to put the -w flag directly on the shebang
line, as
#!/usr/bin/perl -w
For that matter, most CGI scripts should also use -T for data tainting,
so that would make it
#!/usr/bin/perl -wT
...but that's getting a little bit ahead of things, perhaps. :-)
--
Chris Devers
DO NOT LEAVE IT IS NOT REAL
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>