in reply to Re: help with a Perl term
in thread help with a Perl term
The problem exists because Win32 doesn't happen to be on my UNIX box. :) Is there another way to conditionally use a module?$is_NT = ($ENV{'OS'} eq 'Windows_NT'); if ($is_NT) { eval { use Win32::ODBC; } } else { eval { use DBI; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: help with a Perl term
by KM (Priest) on Jun 08, 2000 at 20:19 UTC | |
|
RE: RE: Re: help with a Perl term
by BBQ (Curate) on Jun 08, 2000 at 22:57 UTC | |
by Shendal (Hermit) on Jun 09, 2000 at 00:15 UTC | |
by BBQ (Curate) on Jun 09, 2000 at 00:23 UTC | |
by Shendal (Hermit) on Jun 09, 2000 at 00:28 UTC |