Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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/MyModule.pm', 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/MyModule.pm', AUTHOR => 'me <me@example.com>', # 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.

--Chris

Yes. What say about me, is true.


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-09-18 21:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (124 votes), past polls