You need
opendir(WORKDIR,".")For example, if $direct is "xyz" and you cd xyz, then opendir xyz will operate on xyz/xyz, which is not what you want.
In reply to Re^5: working with relative paths
by fglock
in thread working with relative paths
by apotheon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |