Never mind. Ignore this post. I am having difficulty keeping track of what I am doing. I have a duplicate of website on local machine. I was using hosts to keep from accessing files on line but what a horror having to change hosts when I want to go to the live site. Got screwed up as to what file I was using. Sorry. This is wrong thread. Could not find link to start a new one. Went from compile error to software error. Problem with sendmail. Trying to block out section of code for testing Ttried the = for comments and =cut Didn't work Tried # on every line. Didn't work?? Error before comment out # Same after all the # Global symbol "$mailprog" requires explicit package name at /home/jalamior/www/cgi-bin/lib/perl/manageusers.pm line 777.
#my $mailprog = '/usr/lib/sendmail -oi'; #my $mailprog = '/usr/lib/sendmail -oi -t'; #my $mailprog = '/usr/sbin/sendmail -oi -q -t'; # FUNCTION: open_sendmail_pipe($fh, $mailprog) # my ($fh, $mailprog) = @_; # $result = open $fh, "| $mailprog" #$result = open $fh, "| $mailprog"; #die "Can't open $mailprog\n" unless $result; # open_sendmail_pipe(\*MAIL, $mailprog); #close (MAIL) || die "close mailprog: \$?=$?,\$!=$!";
Suggestion from monks =for comment die "testing"; =cut All the code between =for comment and =cut dimmed out. Same with all the # but still error message: Global symbol "$mailprog" requires explicit package name at /home/jalamior/www/cgi-bin/lib/perl/manageusers.pm line 777. No instances of "$mailprog" exist which are not commented out. Help!!!!!

In reply to Switch.pm Failure ( CGI::Switch? ) by tultalk

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.