Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8202159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:04:41+00:00 2026-06-07T07:04:41+00:00

I have a perl script written for version 5.6.1 and which has dependencies on

  • 0

I have a perl script written for version 5.6.1 and which has dependencies on Oracle packages, DBI packages and more stuff. Everything is correctly installed and works.

Recently perl version 5.8.4 got installed and because those dependencies are not correctly set so the script fails.

‘perl’ command points to /program/perl_v5.8.4/bin/perl — latest version

So, when I have to run my perl script I have to manually specify in command prompt

 /program/perl_v5.6.1/bin/perl scriptName.pl

I tried adding following lines in script:

 /program/perl_v5.6.1/bin/perl 
 use v5.6.1;

But, this means script has to take Perl version > 5.6.1

I found couple of related question which suggested:

  1. To export path. But, I want the script for all the users without have to export path
  2. Specify version greater than. But, I want to use just one specific version for this script.
  3. use/require commands. Same issue as above.

My question: How to specify in the script to only use a specific version of perl?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:04:42+00:00Added an answer on June 7, 2026 at 7:04 am

    The problem is that the interpreter specified in the shebang line (#!/some/path/to/perl) is not used if perl script is called like this:

    perl some_script.pl

    … as the ‘default’ (to simplify) perl is chosen then. One should use the raw power of shebang instead, by executing the file itself:

    ./some_script.pl

    Of course, that means this file should be made executable (with chmod a+x, for example).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Perl test script written using Test::More . Right before exiting, and
I have written a Perl CGI script which fetches an html page from a
The situation I am in is that I have written a perl script which
I have written a Perl script which opens a directory consisting of various files.
I have written a small script in Perl which I am executing on Windows
I have written a perl script to access a wcf service method which returns
I have written a perl script to send email using the gmail's smtp server:
I have written a Perl script for the following bioinformatics question, but unfortunately there
I have written a Perl script, I just want to give it to every
Say I have a script written in perl or python. What's the easiest way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.