Remove a directory tree? : rmtree « File « Perl






Remove a directory tree?

    

    #!/usr/local/bin/perl -w

    use File::Path;

    my $count = rmtree(\@ARGV, 1, 1);
    print "There were $count files removed.\n";

   
    
    
    
  








Related examples in the same category

1.Remove all paths supplied, silently and safely.