Help for this page

Select Code to Download


  1. or download this
    sub perlish {
        chomp;
    ...
    
    %processed = ( getcwd() => 1 );
    print join "\n", (map &perlish, `ls`),"\n";
    
  2. or download this
    sub perlish {
        chomp;
        ( -d ) ? map &perlish, `find $_/* -maxdepth 0` : $_;
    }
    my @files = map &perlish, `find . -maxdepth 0`;