Re: Multi-OS script

2003-03-21 Thread beau
On 20 Mar 2003 at 16:45, Steve Grazzini wrote: > [EMAIL PROTECTED] wrote: > > > > My problem is that I would like to have only > > one script (to simplify maintanence and deployment) > > for all OSs. So, for example, for Win32 machines > > I may need Win32::API and Win32::DriveInfo; if I > > use

Re: Multi-OS script

2003-03-21 Thread Steve Grazzini
[EMAIL PROTECTED] wrote: > > My problem is that I would like to have only > one script (to simplify maintanence and deployment) > for all OSs. So, for example, for Win32 machines > I may need Win32::API and Win32::DriveInfo; if I > use this contstruct: > > ... > if ($^O eq 'MSWin32') { >

Re: Multi-OS script

2003-03-20 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: I can encapsulate the uses in a string eval, but then it seems I must put all use of that (thoese) modules into the same string eval, which gets syntatically sticky quickly. Can someone point me to a simple, elegant, perlish solution? Maybe switching to 'require' instead of