While I know that it wouldn't be elegant, isn't there an eval-based way to do this? I tried the simple-minded
my $a = 'Package'; eval "package $a";,
but it doesn't work (I suspect because I don't really understand the eval EXPR form).
In reply to Re: How not to hardcode a package name?
by JadeNB
in thread How not to hardcode a package name?
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |