sdetweil has asked for the wisdom of the Perl Monks concerning the following question:
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')$my osname = Win32::GetOSName();
my modname='Win32'; require $mymodname; import $mymodname qw(GetOSName); $my osname = GetOSName();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dynamic loading modules
by daxim (Curate) on Sep 03, 2012 at 14:37 UTC | |
by sdetweil (Sexton) on Sep 03, 2012 at 15:19 UTC | |
by chromatic (Archbishop) on Sep 03, 2012 at 18:07 UTC | |
by choroba (Cardinal) on Sep 03, 2012 at 19:39 UTC | |
|
Re: dynamic loading modules
by choroba (Cardinal) on Sep 03, 2012 at 14:42 UTC | |
by sdetweil (Sexton) on Sep 03, 2012 at 15:23 UTC | |
by choroba (Cardinal) on Sep 03, 2012 at 15:41 UTC | |
|
Re: dynamic loading modules
by BrowserUk (Patriarch) on Sep 03, 2012 at 15:55 UTC | |
|
Re: dynamic loading modules
by bulk88 (Priest) on Sep 03, 2012 at 21:02 UTC | |
|
Re: dynamic loading modules
by nikosv (Deacon) on Sep 03, 2012 at 15:23 UTC | |
by sdetweil (Sexton) on Sep 03, 2012 at 15:27 UTC | |
by nikosv (Deacon) on Sep 03, 2012 at 15:40 UTC | |
|
Re: dynamic loading modules
by fishmonger (Chaplain) on Sep 03, 2012 at 15:36 UTC | |
by sdetweil (Sexton) on Sep 03, 2012 at 15:44 UTC | |
by fishmonger (Chaplain) on Sep 03, 2012 at 16:23 UTC | |
by sdetweil (Sexton) on Sep 03, 2012 at 16:58 UTC | |
by Anonymous Monk on Sep 03, 2012 at 17:04 UTC | |
|