19 users online (0 members and 19 guests)  


  Results 1 to 2 of 2

Related

  1. Perl Interpretation Error    Forum: CGI Perl Forum
    Replies: 0
  2. Perl module error - ??    Forum: CGI Perl Forum
    Replies: 0
  3. perl sql concat error    Forum: CGI Perl Forum
    Replies: 1
  4. error in perl with javascript    Forum: CGI Perl Forum
    Replies: 1
  5. where is perl error log?    Forum: CGI Perl Forum
    Replies: 3
  1. #1
    svas_m12's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2006
    Posts
    2

    Perl script error..

    Hi all,
    I have written one script using forms.But I am getting following error.I am executing the script in Linux platform.
    Error:
    root@ingbtcpic3lx012 cgi-bin]# perl form.pl
    syntax error at form.pl line 10, near "print"
    Execution of form.pl aborted due to compilation errors.

    Please find the script below..
    [root@ingbtcpic3lx012 cgi-bin]# cat form.pl
    #!/usr/local/lib/perl5
    print "content-text:text/html\n\n";
    print "<html><head>\n";
    print "<title>Form creation</title>\n";
    print "</head>\n";
    print "<body>\n";
    <FORM>
    <INPUT type="submit">
    </FORM>
    print "</body>\n";
    print "</html>\n";

    Please help me .thanks in advance..
    Regards,
    srinu.

  2. #2
    uthus's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2006
    Location
    Ft Hood
    Posts
    75

    Re: Perl script error..

    Hi,

    Looking at your script, it appears it should have been:
    Code:
    ...
    print "<FORM>";
    print "<INPUT type=\"submit\">;
    print "</FORM>";
    ...
    Quote Originally Posted by svas_m12
    Hi all,
    I have written one script using forms.But I am getting following error.I am executing the script in Linux platform.
    Error:
    root@ingbtcpic3lx012 cgi-bin]# perl form.pl
    syntax error at form.pl line 10, near "print"
    Execution of form.pl aborted due to compilation errors.

    Please find the script below..
    [root@ingbtcpic3lx012 cgi-bin]# cat form.pl
    #!/usr/local/lib/perl5
    print "content-text:text/html\n\n";
    print "<html><head>\n";
    print "<title>Form creation</title>\n";
    print "</head>\n";
    print "<body>\n";
    <FORM>
    <INPUT type="submit">
    </FORM>
    print "</body>\n";
    print "</html>\n";

    Please help me .thanks in advance..
    Regards,
    srinu.



Tags for this Thread