We don't bite newbies here... much | |
PerlMonks |
Re: code that runs (and works) on both Linux and Win32by cdarke (Prior) |
on Sep 02, 2011 at 10:46 UTC ( [id://923821]=note: print w/replies, xml ) | Need Help?? |
Perosnally I use the if pragma for loading modules. I put platform specific code into subroutines, and call via a dispatch table: (With suitable checks at load time to ensure $^O is a key to %g_dt)
In Section
Seekers of Perl Wisdom
|
|