Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
go ahead... be a heretic
 
PerlMonks  

Distributing perl with perl scripts

by g_speran (Acolyte)
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
Gary

Comment on Distributing perl with perl scripts
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2014-04-23 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (551 votes), past polls