mwhiting has asked for the wisdom of the Perl Monks concerning the following question:
And if you're interested, here is the script it is working on. Does ScanDeps output nothing if it finds no dependecies? Because the output from the following script seems to suggest it's still needing something.use Module::ScanDeps; use strict; use warnings; my $hash_ref = scan_deps( files => [ 'c:\lib-authtest.cgi' ], recurse => 1, ); my $key; my $value; print "start:"; while (($key, $value) = each(%{$hash_ref})) { print $key.", ".$value."<br />"; }
#!/usr/bin/perl use warnings; use strict; #perl2exe_noopt "Opcode.pm" #perl2exe_exclude "Apache2/RequestRec.pm" #perl2exe_exclude "Apache2/RequestIO.pm" #perl2exe_exclude "Apache2/RequestUtil.pm" #perl2exe_exclude "APR/Pool.pm" #perl2exe_exclude "ModPerl/Util.pm" #perl2exe_exclude "Apache2/Response.pm" #Net::SMTP related: #perl2exe_exclude "Convert/EBCDIC.pm" #perl2exe_exclude "Mac/InternetConfig.pm" #xperl2exe_include "Authen/SASL.pm" use CGI::Carp qw(fatalsToBrowser); &Main; exit; ############################################ sub Main { print "Content-type: text/html;charset=UTF-8\n\n"; print <<NCP; <html> <head> <title>Library Search</title> </head><body> NCP use Net::SMTP; use MIME::Base64; use Authen::SASL; my $SMTPServer = 'myserver.net'; my $emailFrom = 'from@isp.com'; my $emailTo = 'to@isp.com'; my $NetSMTP = Net::SMTP->new($SMTPServer, Timeout=>60, Debug=>1) || +die "Unable to open connection to SMTP server named '$SMTPServer'.\nE +rror Message: $! \n"; my $user = 'user'; my $pass = 'pass'; print "<br>SMTP auth"; $NetSMTP->auth( $user, $pass ) || die "<br>Auth didn't work: $!<br>" +; print "<br>sending from [$emailFrom] to [$emailTo]"; $NetSMTP->mail($emailFrom); $NetSMTP->to($emailTo); $NetSMTP->data(); $NetSMTP->datasend('this is the body text'); $NetSMTP->quit; print "<br><br><b>Done.</b>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ScanDeps usage
by GrandFather (Saint) on Jul 19, 2012 at 02:16 UTC | |
by syphilis (Archbishop) on Jul 19, 2012 at 11:09 UTC | |
|
Re: ScanDeps usage
by Khen1950fx (Canon) on Jul 19, 2012 at 04:55 UTC | |
|
Re: ScanDeps usage
by Anonymous Monk on Jul 19, 2012 at 06:24 UTC | |
|
ScanDeps alternatives
by dolmen (Beadle) on Jul 19, 2012 at 11:38 UTC |