BEGIN { my $mod = "DBI"; if (eval "require $mod") { $mod->import(); # Set flags, etc. } else { # Set flags, etc. here. } }
In reply to Re: Running a script if module is not installed
by tall_man
in thread Running a script if module is not installed
by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |