Sun751 has asked for the wisdom of the Perl Monks concerning the following question:
Cheers!#Check environment sub inspect { my $window,$informix,$oracle,$sql) = @_; if ($^O eq 'MSWin32' or $^O eq 'Windows_NT') { $window=1; } if ($ENV{FRUNEXT}) { if ($ENV{FRUNEXT} eq 'ifx') { $$informix=1; } elsif($ENV{FRUNEXT} eq 'msv') { $$sql=1; } elsif($ENV{FRUNEXT} eq 'ora') { $$oracle=1; } } else { err_msg( "Database Environment Variable 'FRUNEXT' Not Set: $!\ +n"); exit; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking environment smart solution
by Corion (Patriarch) on Jun 24, 2009 at 07:15 UTC | |
|
Re: Checking environment smart solution
by ikegami (Patriarch) on Jun 24, 2009 at 14:25 UTC | |
|
Re: Checking environment smart solution
by Anonymous Monk on Jun 24, 2009 at 06:20 UTC | |
|
Re: Checking environment smart solution
by citromatik (Curate) on Jun 24, 2009 at 07:33 UTC |