in reply to Re^3: Modules and crossplatform code
in thread Modules and crossplatform code
Keeping Foo::Bar::Win32 in the same file as Foo::Bar::unixoid and having use statements in Foo::Bar::Win32 will not work the way you would like. Loading the appropriate module from a separate file at runtime will only (try to) load a module on Win32 when run on Win32.
If you really want to keep all things in one file, you will need to change the use statements to require statements together with a call to ->import.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Modules and crossplatform code
by afoken (Chancellor) on Dec 07, 2010 at 12:55 UTC |