Hi - I'm trying to use scandeps to find the dependencies in my perl script. However, when I run it, I get no results. Perhaps my scandeps script is needing a little modification thought, I'm hoping that someone's eagle eyes can pick out what I am missing. Here is the script for ScanDeps:
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 />"; }
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.
#!/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

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.