in reply to Re: help with a Perl term
in thread help with a Perl term
my $bad; BEGIN { eval { require Foo }; if ($@) { $bad = "Foo"; warn "This requires $bad to work. " . "You can get it at ... "; } } sub new { return undef if $bad; ...etc... }
Cheers,
KM
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: help with a Perl term
by btrott (Parson) on Jun 08, 2000 at 21:06 UTC | |
by KM (Priest) on Jun 08, 2000 at 21:16 UTC |