in reply to passing a $var thru a "use module($var)"
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: passing a $var thru a "use module($var)"
by Anonymous Monk on Mar 17, 2004 at 04:53 UTC |