3 ms·
That file is very different with an added rewind and now case/when. dirp = Dir.open(".") dirp.rewind for f in dirp if (~/^\./ || ~/~$/ || ~/\
by TomK32 4y ago
That file is very different with an added rewind and now case/when.
dirp = Dir.open(".")
dirp.rewind
for f in dirp
if (~/^\./ || ~/~$/ || ~/\.o/)
else
print(f, "\n")
end
end
dirp.close
- riffraff 4y agoif (~/^\./ || ~/~$/ || ~/\.o/) ah, the perl heritage is strong here!