I am setting up an open source Perl script for some db backup. I don't have much knowledge in Perl. Can someone tell me how to pass the qw[] parameter?
for example, the source code is as follows
@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 does not work. Can someone tell me how to pass a variable to qw []?
source share