[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Splitting up a text file



On Tue, 2 Apr 1996, Eric D. Friedman wrote:

> Could it be the ' marks around your ending_print_tag?  You're telling
> perl to print until it sees 'ending_print_tag' but what you
> actually supply is ending_print_tag (without ').  Try using
> print <<xxxENDxxx;
> blah blah
> xxxENDxxx
>
> instead.
> --
> Eric D. Friedman
> friedman@uci.edu
>
> >could some1 tell me whats wrong with this how come its not returning to
> >the browser?
> >
> >
> >#!/usr/local/bin/perl
> >print "content-type: text/html\n\n";
> >print <<'ending_print_tag';
> ><HTML>
> ><HEAD>
> ><TITLE>FIRST CGI</TITLE>
> ></HEAD>
> ><BODY>
> ><H1>THIS IS A TEST</H1>
> ></BODY>
> >ending_print_tag
>
Or it could be that you are not hitting the line feed/carriage return
after ending_print_tag so the program is still looking for end of file.

Jeffrey Dawkins                         batcomp@teleport.com
Tiger Strikes Media                     http://www.tigerstrikes.com/