my $pid; BEGIN { $pid = $$ } use Module $pid; # ta da
As a separate matter, you should beware about a numeric first argument to use because Perl may interpret it as a minimum required version for the given module.
-- Chip Salzenberg, Free-Floating Agent of Chaos
In reply to Re: passing a $var thru a "use module($var)"
by chip
in thread passing a $var thru a "use module($var)"
by zentara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |