If you&#39;re using Module::Install, you need to add<br><br> install_script glob(&#39;bin/*&#39;);<br><br>That will install every script found in the bin/ directory to the system&#39;s default binary location. Not sure where this is on windows, but in linux (ubuntu/debian/++) it&#39;s /usr/local/bin<br>

<br>Example Makefile.PL:<br><br>use inc::Module::Install;<br><br>#----------------------------------------------------<br>
name q(My-Module);<br>all_from q(lib/My/Module.pm);<br><br>requires q(Moose) =&gt; 1.0;<br>test_requires q(Test::More) =&gt; 0.9;<br><br>bugtracker q(<a href="http://rt.cpan.org/NoAuth/Bugs.html?Dist=My-Module">http://rt.cpan.org/NoAuth/Bugs.html?Dist=My-Module</a>);<br>

homepage q(<a href="http://jhthorsen.github.com/my-module">http://jhthorsen.github.com/my-module</a>);<br>repository q(git://<a href="http://github.com/jhthorsen/my-module.git">github.com/jhthorsen/my-module.git</a>);<br>

<br>install_script q(bin/my-script);<br>auto_install;<br>WriteAll;<br>#----------------------------------------------------<br><br>Regards,<br> batman<br><br>PS: ...and if you&#39;re not using Module::Install, you need to use it ;-)<br>

<br><div class="gmail_quote">On Thu, Oct 14, 2010 at 4:39 PM, Benjamin Martin <span dir="ltr">&lt;<a href="mailto:benjamin.martin@ims-evolve.com">benjamin.martin@ims-evolve.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hello MK Mongers,<br>
<br>
Twas a good tech meet the other day, enjoyed the talks alot .. so cheers to all that spoke :)<br>
<br>
I was just wondering if anyone knew of a good source of information about building a distribution?... the reason I ask is because I was trying to find information on how to build into your package a command line script??<br>


<br>
I dont have any problems packaging the modules... especially now I have started using Dist::Zilla, but I can&#39;t seem to find a definative &quot;this is how you include and distribute a script with your package&quot; .. type  page?? :)<br>


<br>
I have had a look in some dists that I know include a command line script &#39;cpanm&#39;, &#39;dzil&#39;, etc. they seem to achieve it in different ways.<br>
<br>
cheers,<br>
-Ben<br>
<br>
<br>
_______________________________________________<br>
MiltonKeynes-pm mailing list<br>
<a href="mailto:MiltonKeynes-pm@pm.org" target="_blank">MiltonKeynes-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/miltonkeynes-pm" target="_blank">http://mail.pm.org/mailman/listinfo/miltonkeynes-pm</a><br>
</blockquote></div><br>