kcarpenter@soleo.com has asked for the wisdom of the Perl Monks concerning the following question:
I would like to use a variable in a "use" clause.
I have one script that runs on multiple servers, each taking its own <servername>_data.pm file
Currently I have to copy the script and rename the file in the use clause for each server.
I would like to advoid this and do something like
my $variable = "<servername>_data";
use $variable;
Is there any way to do this ?
I have one script that runs on multiple servers, each taking its own <servername>_data.pm file
Currently I have to copy the script and rename the file in the use clause for each server.
I would like to advoid this and do something like
my $variable = "<servername>_data";
use $variable;
Is there any way to do this ?
Back to
Seekers of Perl Wisdom