If you choose to use require, beware that if you give it a string, it expects it to be a file name/path, not the module name.eval('use dir_'.$day.'::'.$userId.' qw(\%diary)'); print "Can't use dir_$day::$userId module: $@";
In reply to Re: How to use variables in @INC and "use" commands
by pjotrik
in thread How to use variables in @INC and "use" commands
by Arun Tv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |