in reply to what to do if module is not installed, YIKES!

What about this one?
my $gzip = '/usr/bin/gzip'; if (!-x $gzip){ $gzip = 'lib'; } my $lgos = new Logfile::Rotate( Gzip => $gzip, ... );

Replies are listed 'Best First'.
Re^2: what to do if module is not installed, YIKES!
by mikejones (Scribe) on May 06, 2008 at 19:35 UTC
    yes that will work, but was thinking some kind of 'or' code within the sub. thank you however!