I included the following line in my code use lib "/usr/lib/perl5/5.8.8/"; I have included my script. I get the fail at line 119. Thanks

#!usr/bin/perl use lib "/usr/lib/perl5/5.8.8"; ###################################################################### # SQL-Ledger ERP # Copyright (C) 2006 # # Author: DWS Systems Inc. # Web: http://www.sql-ledger.com # ###################################################################### +# # # this script sets up the terminal and runs the scripts # in bin/$terminal directory # admin.pl is linked to this script # ###################################################################### +# # setup defaults, DO NOT CHANGE $userspath = "users"; $spool = "spool"; $templates = "templates"; $images = "images"; $memberfile = "users/members"; $sendmail = "| /usr/sbin/sendmail -t"; %printer = (); ########## end ########################################### $| = 1; eval { require "sql-ledger.conf"; }; if ($ENV{CONTENT_LENGTH}) { read(STDIN, $_, $ENV{CONTENT_LENGTH}); } if ($ENV{QUERY_STRING}) { $_ = $ENV{QUERY_STRING}; } if ($ARGV[0]) { $_ = $ARGV[0]; } %form = split /[&=]/; # fix for apache 2.0 bug map { $form{$_} =~ s/\\$// } keys %form; # name of this script $0 =~ tr/\\/\//; $pos = rindex $0, '/'; $script = substr($0, $pos + 1); @scripts = qw(login.pl admin.pl custom_login.pl custom_admin.pl); if (grep !/^\Q$form{script}\E/, @scripts) { print "Content-Type: text/html\n\n" if $ENV{HTTP_USER_AGENT}; print "\nAccess denied!\n"; exit; } if (-f "$userspath/nologin" && $script ne 'admin.pl') { print "Content-Type: text/html\n\n" if $ENV{HTTP_USER_AGENT}; if (-s "$userspath/nologin") { open(FH, "$userspath/nologin"); $message = <FH>; close(FH); print "\n$message\n"; } else { print "\nLogin disabled!\n"; } exit; } if ($form{path}) { $form{path} =~ s/%2f/\//gi; $form{path} =~ s/\.\.//g; if ($form{path} !~ /^bin\//) { print "Content-Type: text/html\n\n" if $ENV{HTTP_USER_AGENT}; print "\nInvalid path!\n"; exit; } $ARGV[0] = "$_&script=$script"; require "$form{path}/$script"; } else { if (!$form{terminal}) { if ($ENV{HTTP_USER_AGENT}) { # web browser $form{terminal} = "lynx"; if ($ENV{HTTP_USER_AGENT} !~ /lynx/i) { $form{terminal} = "mozilla"; } } else { if ($ENV{TERM} =~ /xterm/) { $form{terminal} = "xterm"; } if ($ENV{TERM} =~ /(console|linux|vt.*)/i) { $form{terminal} = "console"; } } } if ($form{terminal}) { $form{terminal} =~ s/%2f/\//gi; $form{terminal} =~ s/\.\.//g; $ARGV[0] = "path=bin/$form{terminal}&script=$script"; map { $ARGV[0] .= "&${_}=$form{$_}" } keys %form; require "bin/$form{terminal}/$script"; #line 119 } else { print "Content-Type: text/html\n\n" if $ENV{HTTP_USER_AGENT}; print qq|\nUnknown terminal\n|; } } # end of main

In reply to Re^3: Scirpts Don't Run by Mtnbkr777
in thread Scirpts Don't Run by Mtnbkr777

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.