in reply to Re^2: dynamic loading modules
in thread dynamic loading modules
This is never going to work:
my $win32 ="Win32.pm"; import $win32 qw(GetOSName);
If there isn't already an import() in your current package, this will effectively become:
'Win32.pm'->import( 'GetOSName' );Because there's no package called Win32.pm, nothing will get imported. You're better off writing:
Win32->import( 'GetOSName' );... or even:
'Win32'->import( 'GetOSName' );
|
---|
In Section
Seekers of Perl Wisdom