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++
In reply to Re: Dumb or Cursed?
by BazB
in thread Problems with -filetest on readdir results
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |