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
[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') {
>
[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