tultalk has asked for the wisdom of the Perl Monks concerning the following question:
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!!!!!#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: \$?=$?,\$!=$!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Switch.pm Failure ( CGI::Switch? )
by poj (Abbot) on Feb 26, 2017 at 16:14 UTC | |
by tultalk (Monk) on Feb 27, 2017 at 23:53 UTC | |
by huck (Prior) on Feb 28, 2017 at 00:33 UTC | |
by huck (Prior) on Feb 28, 2017 at 00:20 UTC | |
by tultalk (Monk) on Feb 28, 2017 at 00:36 UTC | |
by tultalk (Monk) on Feb 28, 2017 at 01:01 UTC | |
|