in reply to After installing my own perl into /opt, is it ok to set root's PATH so /opt/perl/bin/perl comes before /usr/bin/perl? (Debian)

In my opinion, root should only use the system Perl. But if you're careful with always using the "correct", fully qualified hashbang line (#!/opt/perl/... or #!/usr/bin/perl) instead of using perl -w ... from the command line, and all shell scripts also do that, you should be fine. But I'd still leave the system Perl the "standard" Perl and explicitly call the other Perl.

  • Comment on Re: After installing my own perl into /opt, is it ok to set root's PATH so /opt/perl/bin/perl comes before /usr/bin/perl? (Debian)
  • Select or Download Code