Fri Oct 22 06:57:59 2010: Request 62357 was acted upon.
Transaction: Correspondence added by RSCHUPP
       Queue: PAR
     Subject: .cgi extension not taken as script
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: alastair.doug...@gmail.com
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=62357 >


On 2010-10-21 18:02:53, alastair.doug...@gmail.com wrote:
> It seems like only .pl and no extension at all are considered Perl
scripts:
> Anything else, and the dependencies are not scraped and nothing but
> the script itself is packed. This is not documented, hence I assume it
> is a bug.

It's kinda documented if you know where to look :)
cf.
http://search.cpan.org/~rschupp/Module-ScanDeps-0.98/lib/Module/ScanDeps.pm#NOTES
about $Module::ScanDeps::ScanFileRE

We can definitely add a remark along these lines to the pp's POD.

Or we can fix it by calling into Module::ScanDeps with

  $Module::ScanDeps::ScanFileRE = qr/./;

This is definitely how perl itself works: the command line
and "require" do NOT discriminate against any suffix (or lack of).

Cheers, Roderich


Reply via email to