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 7192933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:03:41+00:00 2026-05-28T20:03:41+00:00

I am customizing an open source Perl script for some db backup. I don’t

  • 0

I am customizing an open source Perl script for some db backup. I don’t have much knowledge in Perl. Can someone tell me how will i pass a parameter to qw[]?

for example the original code is like this

@selected_databases  = qw[testdb1 testdb2 testdb3];

i want to convert it to something like below

$_dblist = "testdb1 testdb2 testdb3";
@selected_databases  = qw[$_dblist];

but it is not working. Can someone tell me how will I pass a variable to qw[]?

  • 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-28T20:03:42+00:00Added an answer on May 28, 2026 at 8:03 pm

    qw does not support interpolation. As per the perl-doc. As such, you cannot do that, it will not work. To achieve what you are looking to do, use the split function.

    $_dblist = "testdb1 testdb2 testdb3";
    @selected = split(' ', $_dblist);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on customizing a couple of open source projects in ways that are
I tried the new Customizing API for iOS 5 and have some problems I
I'm customizing MS Dynamics CRM 4 and I have some JScript running on the
I'm customizing an open-source .NET application. It compiles perfectly fine. But forms and controls
I currently am customizing an open-source forum to suit an organisation I do volunteer
During practice of customizing VirtualPathProvider, I found that it the custom VirtualPathProvider can be
I am working on customizing a closed source client application. It has a tree
Ok so I've downloaded an open source project that I'm looking at customising for
I am customizing the insert SQL generated by hibernate and have hit an issue.
I'm customizing a .csproj project to run some custom tasks before the main build.

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.