And your opendir will only work (by accident) if you are in the root folder when you start the script.
In reply to Re^3: Read first line from each file in a directory
by Tux
in thread Read first line from each file in a directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |