Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Distributing perl with perl scripts

by g_speran (Beadle)
on Jul 02, 2009 at 16:05 UTC ( #776784=perlquestion: print w/replies, xml ) Need Help??
g_speran has asked for the wisdom of the Perl Monks concerning the following question:

Hello All,
Please forgive me up front for asking but I do not know the answer to this.

I have written a couple of perl scripts that automates collecting of data. I have tested this sucessfully on my Fedora 11 machine with Perl 5.10, however the scripts do not work on 5.9 or below because of missing modules. My questions is, is there a way that I can distribute perl 5.10 with my scripts in a single tar file? So if I were to install perl 5.10 into a totally seperate area in my Fedora environment, say /apps/perl, can I tar up /apps/perl and my scripts and then take this tar file and extract it say to /tmp/perl, on Linux, HP, Solaris, AIX, etc, have my scripts reference #!/temp/perl as the first line and all be well? Or does each flavor of UX need it own different version of perl for its specific OS?

Thanks for any assistacne you can offer

Replies are listed 'Best First'.
Re: Distributing perl with perl scripts
by davorg (Chancellor) on Jul 02, 2009 at 16:13 UTC
      I second using PAR. I wrote a tutorial for windows but it should be enough to get you started on Linux.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://776784]
Approved by ww
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-06-18 04:16 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (107 votes). Check out past polls.