in reply to Re^4: working with relative paths
in thread working with relative paths

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.

Replies are listed 'Best First'.
Re^6: working with relative paths
by apotheon (Deacon) on Oct 30, 2004 at 03:55 UTC

    I knew I was going to feel stupid by the time this question got answered. Thank you. That seems to have solved it.

    - apotheon
    CopyWrite Chad Perrin