Remove all paths supplied, silently and safely. : rmtree « File « Perl






Remove all paths supplied, silently and safely.

    


#!/usr/bin/perl

use strict;
use warnings;
use File::Path;

my $path=$ARGV[0];

my $verbose = 0;
my $safe = 1;
rmtree $path, $verbose, $safe;

rmtree(\@ARGV, 0, 1);

   
    
    
    
  








Related examples in the same category

1.Remove a directory tree?