okay, I'm getting back into PERL after a long hiatus.
I'm using Mac OS X 10.3.9, Terminal, TextEdit to get started. I've used
this before in the past.
I write a simple script as described on page 8 of my beginners perl book
(CGI/Perl by Diane Zak - Course Technology's Web Warrior Series). This
is the script below:
#!/usr/bin/perl
#first.cgi - my first CGI script
print "Content-type: text/html\n\n";
#generate HTML
print "<html>\n";
print "<head><title>First Script</title></head>\n";
print "<body>Congratulationss</body>\n";
print "</html>\n";
okay, when I use the -c switch from the Terminal prompt it does check
for syntax errors okay, BUT when I use the -w switch nothing happens.
This is what I am typing at the Terminal prompt:
perl -w first.cgi
first.cgi being the name of my file. Yes, my command prompt is in the
same directory as the file.
This used to all work before when I was into Perl on my other OS X mac.
Somebody please tell me where I could be going wrong.
Elliot
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>