Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^3: dynamic loading modules

by chromatic (Archbishop)
on Sep 03, 2012 at 18:07 UTC ( #991496=note: print w/ replies, xml ) Need Help??

in reply to Re^2: dynamic loading modules
in thread dynamic loading modules

This is never going to work:

my $win32 =""; import $win32 qw(GetOSName);

If there isn't already an import() in your current package, this will effectively become:

''->import( 'GetOSName' );

Because there's no package called, nothing will get imported. You're better off writing:

Win32->import( 'GetOSName' );

... or even:

'Win32'->import( 'GetOSName' );

Comment on Re^3: dynamic loading modules
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991496]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2015-11-30 13:34 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (770 votes), past polls