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

  • Home
  • SEARCH
  • 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 3401894
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:04:18+00:00 2026-05-18T05:04:18+00:00

Is possible to use different version of Perl without using the SET or manipulating

  • 0

Is possible to use different version of Perl without using the SET or manipulating the environment variable “PATH”

I need a mechanism that allows me to work with different version of Perl for different script without affecting the system configuration.
(e.g. I am using Perl ver 5.6.1 for some scripts and perl 5.8.8 for other Perl scripts)

  • 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-05-18T05:04:18+00:00Added an answer on May 18, 2026 at 5:04 am

    It’s an old trick I do when I have two different, but very incompatible versions of Perl I have to use: Use different suffixes:

    For example, I have ClearQuest on my system and must use cqperl (which is ClearQuest’s version of Perl) to execute scripts that manipulate the issues in ClearQuest. Yet, if I have to manipulate SQL data from our database, I have to use my ActivePerl because I can’t add in the DBI module into cqperl.

    What I did was associate the *.pl suffix with ActivePerl and the *.cqpl suffix with cqperl. Now, when I execute a script, and it ends in *.cqpl, it uses one version of Perl while a script that ends with *.pl is executed by another version of Perl.

    To associate a suffix with a program, go into a Windows Explorer window and select Folder Options from the Tools menu. Then, click on the File Types tab. Click on the New button and create a new extention to associate with the file. Then, select it in the Registered File Types window, and click on the Advanced button on the bottom.

    Create an Open action, and associate it with the full path name of the Perl you want to execute that suffix. Like this:

    "C:\Perl\bin\perl.exe" "%1" %*
    

    The %* is important, so you can pass other parameters to your program.

    In your case, you could use *.pl for Perl 5.8.8 and *.pl6 for Perl 5.6.

    You don’t even need to put Perl’s bin directory in your path. Just type the name of your script and that’s it.

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

Sidebar

Related Questions

I have been using perlbrew to manage multiple versions of perl on a Linux
I have a JNI library that interacts with a set of third party libraries,
I am using the python version of Google AppEngine. I want to be able
I am trying to figure out if there's a way to identify a version
I have some html that creates a dropdown list. The list has text values
I'm interested in Qooxdoo as a possible web development framework. I have downloaded the
Is there any way to make static libraries built in Microsoft Visual Studio independent
My current team has standardized on NetBeans for all of our Java development, and
I have first to explain a little bit my context, then the question: I
Previous I issued a question on how to change Maven project vesion from command

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.