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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067759]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2018-03-24 20:21 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (299 votes). Check out past polls.