|Pathologically Eclectic Rubbish Lister|
dynamic loading modulesby sdetweil (Sexton)
|on Sep 03, 2012 at 14:23 UTC||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..
(note the lack of an explicit 'use')
using examples on the web I changed it to
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