use File::Which; # exports which() my %paths; $paths{rm} = which('rm'); $paths{tar} = which('tar');
use IPC::Cmd qw[can_run run]; my $full_path = can_run('wget') or warn 'wget is not installed!';
In reply to Re: How to find whether an external commands exists
by Anonymous Monk
in thread How to find whether an external commands exists
by sathiya.sw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |