<?xml version="1.0" encoding="windows-1252"?>
<node id="222511" title="Use ExtUtils::MakeMaker to install scripts" created="2002-12-27 05:17:03" updated="2005-08-12 00:55:35">
<type id="11">
note</type>
<author id="127307">
IlyaM</author>
<data>
<field name="doctext">
Exactly. This is why for all Perl scripts I'm going to distrubute on other systems I use [ExtUtils::MakeMaker] which does such patching automatically.
&lt;p&gt;
It is very simple:
&lt;code&gt;
&lt; Makefile.PL file &gt;

use ExtUtils::MakeMaker;

WriteMakefile(NAME      =&gt; 'Hello',
              VERSION   =&gt; '1.00',
              EXE_FILES =&gt; ['hello']);

&lt; MANIFEST file &gt;

Makefile.PL
hello

&lt; hello file &gt;

#!perl

use strict;
use warnings;

print "Hello, world!\n";
&lt;/code&gt;

Once finished you can type &lt;code&gt;perl Makefile.PL; make dist&lt;/code&gt; and get tarball ready to install with &lt;code&gt;tar zxvf Hello-1.00.tar.gz; cd Hello-1.00; perl Makefile.PL; make; make install&lt;/code&gt;

&lt;p&gt;
&lt;b&gt;Update:&lt;/b&gt; Replaced 'script.pl' with 'hello' in 'MANIFEST'.

&lt;p&gt;
&lt;font color="grey" size="-2"&gt;
--&lt;br&gt;
Ilya Martynov,  &lt;a href="mailto:ilya@iponweb.net"&gt;ilya@iponweb.net&lt;/a&gt;&lt;br&gt;
CTO IPonWEB (UK) Ltd&lt;br&gt;
Quality Perl Programming and Unix Support
UK managed @ offshore prices - &lt;a href="http://www.iponweb.net"&gt;http://www.iponweb.net&lt;/a&gt;&lt;br&gt;
Personal website - &lt;a href="http://martynov.org/"&gt;http://martynov.org&lt;/a&gt;&lt;br&gt;
&lt;/font&gt;</field>
<field name="root_node">
222457</field>
<field name="parent_node">
222474</field>
</data>
</node>
