Public feed #381659

Untitled

public text v1 · immutable
Raw Edit
·published 2007-03-05 00:18 UTC
rendered paste body
while (defined ($jobdir = readdir(DIR)))  {
      next if $jobdir eq "." or $jobdir eq "..";
      next unless -d $jobdir;
      print "$jobdir\n";
}

output:

while (defined ($jobdir = readdir(DIR)))  {
      next if $jobdir eq "." or $jobdir eq "..";
      #next unless -d $jobdir;
      print "$jobdir\n";
}

output:
testdir
testdir2
testfile