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 reply to Re^3: dynamic loading modules
by chromatic
in thread dynamic loading modules
by sdetweil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |