Thanks . it worked. regards irf
________________________________ 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