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>"; }
In reply to ScanDeps usage by mwhiting
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |