> > 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...
I think you could modify your statement by saying ......It It has always been my understanding that perl is generally "whitespace irrelevant" but note the exception above Also note that white space as an aid to program readability is highly recommended And remember that a white space or spaces in the wrong place can cause you all sorts of grief -- Owen -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/