[sf-perl] perl on a mac

Garth Webb garth.webb at gmail.com
Mon Nov 17 11:39:04 PST 2008


On Sun, Nov 16, 2008 at 10:15 AM, Walt Sanders
<wsanders at pacificwebdesign.org> wrote:
[snip]
> The html is mostly done with print commands or with >> sections.  Here is
> the toping:
>
> -----------------------
> #!/usr/bin/perl
> use strict;
> use CGI qw( :standard );
> use Fcntl qw( :flock );
>
> print( header() );
> print( start_html( 'ID Yourself' ) );
>
> print("<body bgcolor='#00ffff' onLoad='document.regform.name.focus();'>");
> print("<p><br><br>");
>
> etc.
> ------------------------------
>
>
> All rather simple minded, but it works fine everywhere if I don't try it on
> my Mac!  If I run something without html, like
>
>     #!/usr/bin/perl -w
>     print "Content-type: text/html\n\n";
>     print "Hello, world";
>
> it works just fine.  I get just the two lines printed.

You still haven't said *how* the script that outputs HTML doesn't
work.  Does it not return what you expected?  Does it return an error?
 What is the expected output vs. the actual output?


More information about the SanFrancisco-pm mailing list