my $x = "A"; require "CONF-$x.pm"; # Note the .pm! "CONF-$x" -> import if "CONF-$x" -> can ("import");
Abigail
In reply to Re: Are dynamic 'use' statements possible?
by Abigail-II
in thread Are dynamic 'use' statements possible?
by tosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |