XP is just a number | |
PerlMonks |
dynamic loading modulesby sdetweil (Sexton) |
on Sep 03, 2012 at 14:23 UTC ( [id://991441]=perlquestion: print w/replies, xml ) | Need Help?? |
sdetweil has asked for the wisdom of the Perl Monks concerning the following question:
I have this app that is cross platform, supports window, linux, solaris, aix,hpux, linux-z, .. 32 and 64 bit.
as I port around, I keep running into some windows only modules not available on other platforms.. duh..
so, I'd like to convert my 'use Win32' to 'require Win32'. and load the library.. seems simple.. but I guess I must be missing the last little thing.. current code (note the lack of an explicit 'use') using examples on the web I changed it to
which fails Undefined subroutine &main::GetOSName all the examples seem to be fine, but they don't show the code that consumes the functions of the package when used in a dynamic load implementation. thanks Sam
Back to
Seekers of Perl Wisdom
|
|