Help for this page

Select Code to Download


  1. or download this
        system("rm -rf $tmp_dir/*");
    
  2. or download this
        use File::Spec;
        system("rm -rf " . File::Spec->catfile($tmpdir, "*"));
    
  3. or download this
        use File::Path;
        my $tmp_dir = "/tmp/blahblah-11-14-2000";
        rmtree($tmp_dir);    # no error check; doesn't matter if it doesn'
    +t exist
        mkdir($tmp_dir) or die "Unable to make temporary folder $tmp_dir: 
    +$!\n";