in reply to Problems with -filetest on readdir results
Your foreach loop was incorrect. Use of strict and warnings also helps spot errors.
You could also replace the foreach loop with a map statement:
Cheers!
BazB.
Update: I ignored the -d test, and obviously don't know my foreach loop from my elbow. Oops. ides++ and boo_radley++
|
|---|