Help for this page

Select Code to Download


  1. or download this
    opendir(DIR, $mydir);
    my @files = readdir(DIR);
    ...
    foreach (@files)
    {
        next if( -d $_ );
    
  2. or download this
    opendir(DIR, $mydir);
    my @files = readdir(DIR);
    ...
    foreach (@files)
    {
        next if( -d $mydir."/$_" );