Help for this page

Select Code to Download


  1. or download this
    use File::Which;                  # exports which()
    my %paths;
    $paths{rm} = which('rm');
    $paths{tar} = which('tar');
    
  2. or download this
        use IPC::Cmd qw[can_run run];
    
        my $full_path = can_run('wget') or warn 'wget is not installed!';