>> I working on a perl script that will be executed on at least a Mac and a >> UNIX box. When I try to run it on UNIX, the script fails because it >> cannot find Mac Specific modules, even though they are inside of if >> blocks that are not to be executed on a UNIX machine. How do I hide >> these use statements? Or do I just install dummy .pm files on my UNIX >> machine? > > It doesn't matter what 'if' blocks a 'use' is inside, because 'use' is a > compile-time directive. > > By replacing 'use' with 'require' and 'import', you get runtime execution > instead. That is how Kevin Reid's source post earlier was able to do his 'trick'. See Message-ID: <1dvq80r.1x0ynjp14hfy1uM@imac.loc> for an example. HTH, -Sneex- :] ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org