Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: building a module with executable scripts

by taint (Chaplain)
on Dec 19, 2013 at 01:36 UTC ( #1067759=note: print w/ replies, xml ) Need Help??

in reply to building a module with executable scripts

Greetings, rmcgowan.

Using the example you provided. I'll propose some possible changes/additions

use 5.012001; use ExtUtils::MakeMaker; WriteMakefile( NAME => 'MyModule', VERSION_FROM => 'lib/', EXE_FILES => ['script_name'], PL_FILES => {}, PREREQ_PM => {'WWW::Curl::Easy' => 4.15, 'JSON::XS' => 2.32, 'Term::ReadKey' => 2.30, 'String::Strip' => 1.02, 'Date::Parse' => 2.30, }, ABSTRACT_FROM => 'lib/', AUTHOR => 'me <>', # EXE_FILES => [ 'script_name' ], );
Note the addition, and position of EXE_FILES, and PL_FILES. This is normally how/where such things are added/used. I have no idea where your EXE file is, or if it's even a EXE type file. Same goes for the PL file. Is it a Perl script you are attempting to include? Where is it located within the Module tree? In the root? In a "script" directory off root? These are things you'll need to know, in order to accomplich your goal.

HTH, and best wishes.


Yes. What say about me, is true.

Comment on Re: building a module with executable scripts
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067759]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2015-11-25 12:33 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (674 votes), past polls