Help for this page

Select Code to Download


  1. or download this
    $cmd = 'del nonexistent.file'; 
    chomp($res = `$cmd 2>&1`);
    print "\n[Command is :: ", $cmd, "]\n[RESULT:: ", $res,"]\n\n";
    
  2. or download this
    [Command is :: del nonexistent.file]
    [RESULT:: Could Not Find C:\My Documents\foo\Perl\dl\debug\nonexistent
    +.file]