Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -T
    # file rmtree.pl
    use File::Path;
    my $dir = 'path';
    rmtree($dir);
    
  2. or download this
    qwurx [shmem] ~> mkdir -p path/to/some/file
    qwurx [shmem] ~> perl -T rmtree.pl
    
  3. or download this
    #!/usr/bin/perl -T
    # file rmtree.pl
    ...
    my $dir = shift;
    $dir =~ /^(.*)$/ && ($dir = $1);
    rmtree($dir);
    
  4. or download this
    qwurx [shmem] ~> mkdir -p path/to/some/file
    qwurx [shmem] ~> perl -T rmtree.pl path
    
  5. or download this
    #!/usr/bin/perl -T
    # file rmtree.pl
    ...
    my $dir = shift;
    # $dir =~ /^(.*)$/ && ($dir = $1);
    rmtree($dir);
    
  6. or download this
    qwurx [shmem] ~> mkdir -p path/to/some/file
    qwurx [shmem] ~> perl -T rmtree.pl path
    Insecure dependency in chdir while running with -T switch at /usr/lib/
    +perl5/5.8.8/File/Path.pm line 195.