Help for this page

Select Code to Download


  1. or download this
    opendir(DIR, $some_dir) or die "Can't opendir $some_dir: $!";
    my @subdirs = ();
    ...
      push (@subdirs, $_) if -d "$some_dir/$_";
    }
    closedir DIR;
    
  2. or download this
    perl -e "$_=*F=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"