HP3000-L Archives

July 1996, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
joe whitlock <[log in to unmask]>
Reply To:
joe whitlock <[log in to unmask]>
Date:
Tue, 23 Jul 1996 17:27:43 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (86 lines)
Hi,
 
I'm trying to learn perl on the HP 3000 to be able later do CGI
programming. Perl came from jazz ver 4.0 I think.
 
Here is what I'm doing on the HP3K 5.0
 
************************************************
 
POSIX /WWW/JOE/public_html/cgi-bin>cat first.cgi
#!/usr/local/bin/perl
print <<'mark';
<html>
<head>
<title> My first CGI </title>
<background="#000000" text="#FF0000" >
</head>
<body>
<h1> My First CGI </h1>
<em> HELLO, INTERNET! </em>
<hr noshade>
Watch out cyber space, another programmer is on the loose ;-)
</body>
</html>
mark
POSIX /WWW/JOE/public_html/cgi-bin>first.cgi
 
POSIX /WWW/JOE/public_html/cgi-bin>
 
************************************************
 
Notice that when I execute it nothing appears.
 
I have gotten this to work on the HP3K if I go
into the perl interperter then type the commands.
and end the last line with this sequence.
mark cr ^Z cr
 
************************************************
 
POSIX /WWW/JOE/public_html/cgi-bin>perl
print <<'mark';
<html>
<head>
<title> My first CGI </title>
<background="#000000" text="#FF0000" >
</head>
<body>
<h1> My First CGI </h1>
<em> HELLO, INTERNET! </em>
<hr noshade>
Watch out cyber space, another programmer is on the loose ;-)
</body>
</html>
mark
 
<html>
<head>
<title> My first CGI </title>
<background="#000000" text="#FF0000" >
</head>
<body>
<h1> My First CGI </h1>
<em> HELLO, INTERNET! </em>
<hr noshade>
Watch out cyber space, another programmer is on the loose ;-)
</body>
</html>
POSIX /WWW/JOE/public_html/cgi-bin>
 
************************************************
 
On the HP9K I can execute this perl script as a file
or interactively.  Is there some .profile statements
or something I need?
 
Thanks ahead of time!
 
--
 
  Joe Whitlock                  | Work Email: [log in to unmask]
  The Boeing Company            | Home Email: [log in to unmask]
  P.O. Box 3707                 | Tel:      206-234-1478
  MS 6C-91                      | Fax:      206-234-0525
  Seattle, WA 98124-2207        |

ATOM RSS1 RSS2