in reply to how do I read this Perl code..

Following on the other, able answers...

Wouldn't the -e test be better than -f? That is, if TMPDIR/runitout_XXXXXX exists as a directory, won't -f return false?

throop