Hello,

> On Mon, 2009-06-08 at 23:38 -0700, Irfan Sayed wrote:
> ________________________________
> From: Owen <rc...@pcug.org.au>
> To: Irfan Sayed <irfan_sayed2...@yahoo.com>
> Cc: beginners@perl.org
> Sent: Tuesday, June 9, 2009 12:03:49 PM
> Subject: Re: CGI
> 
> 
> > Hi ALL,
> >
> > i have written sample cgi script in perl. here it is
> >
> > #!/usr/bin/perl
> > print "Content-type: text/html\n\n";
> > print <<HI;
> > <HTML>
> > <HEAD>
> >   <TITLE>Welcome to CGI scripting </TITLE>
> >     </HEAD>
> >       </HTML>
> >         HI
> >
> > but when i am trying to execute this script it throws me an error like
> >
> > Can't find string terminator "HI" anywhere before EOF at ./test1 line
> > 5.
> 
> 
> I think the HI has to aligned to the left, eg,
> 
> print <<HI;
> <HTML>
> <HEAD>
>   <TITLE>Welcome to CGI scripting </TITLE>
>   </HEAD>
>     </HTML>
> HI
> 
> 
> try that
> 
> 
> -- 
> 
> 
> 
> Owen


It It has always been my understanding that perl is "whitespace
irrelevant"


any help would be appreciated...

Thanks,

Greg

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to