in reply to Re: how to install perl 5.10.1 on ubuntu9.10?
in thread how to install perl 5.10.1 on ubuntu9.10?
Do not add /opt/perl/bin to your (or root's) $PATH.
What is wrong with prepending own's Perl bin dir to $PATH (not root's, agreed)? I do it all the time, no problems so far.
Always use the fully-qualified shebang line at the beginning of scripts that you explicitly want to use /opt/perl/bin/perl:
OK, this shows the occasional use-case for custom Perl. However, if you want your scripts to be portable, do not hard-code paths. Instead, set $PATH and use something like
#!/usr/bin/env perl
which is much more portable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to install perl 5.10.1 on ubuntu9.10?
by Anonymous Monk on Nov 19, 2009 at 16:47 UTC | |
|
Re^3: how to install perl 5.10.1 on ubuntu9.10?
by Anonymous Monk on Nov 19, 2009 at 10:15 UTC |