Help for this page

Select Code to Download


  1. or download this
    use Path::Class qw/dir/;
    my $dir = dir( 'basedir' ); # platform-neutral syntax
    
  2. or download this
    my @plain_files;
    $dir->recurse(callback => sub {
    ...
        return if $file->is_dir;
        push @plain_files, $file;
    });