[tpm] Using a variable in a 'qw()'

Madison Kelly linux at alteeve.com
Thu Jun 12 07:25:14 PDT 2008


Hi all,

   I want to use a variable when calling a module that uses the 'qw()' 
syntax. Specifically:

use Net::DBus::Exporter qw(org.tle_bu.Clients);

   I would like to be able to say:

my $foo="org.tle_bu.Clients";
use Net::DBus::Exporter qw($foo);

   But '$foo' is passed in directly, rather than it's value. Is there an 
alternative to 'qw()'? Honestly, I use that syntax all the time but I've 
never really understood how it works. Perhaps I should be asking for a 
pointer to a doc that explains this syntax better?

Thanks, as always!

Madi


More information about the toronto-pm mailing list