I think that it will be enough to change first line to
#!/new_perl5.8.8_dir/usr/local/bin/perl
It is about six years ago when I work as Perl developer. I needed to test all new code for running with different versions of Perl. I've installed different perl versions to /opt/perl-${VERSION} so the system wide perl which was required for base system administration remain untouched. In addition I wrote a short application in C and save it as /usr/bin/perl_parallel. Perl_parallel read preferred Perl version from file .perl_version in user $HOME and executed script under correct Perl interpreter. There was also script use_perl for querying and updating .perl_version file. If someone is interested in the perl_parallel C source code, it can be found in C/C++ programming forum on server forum.builder.cz (page is in Czech).
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|