The use line is called during compilation, so $config is not yet set. Try the following:
BEGIN { $config = AppConfig->new(); } use Othermodule ( Config => $config );
In reply to Re: use Module (LIST) and 'import'
by rrwo
in thread use Module (LIST) and 'import'
by eXile
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |