in reply to Changing data in a directory

Change
@files = glob('/perl/bin/dir');
to
@files = glob('/perl/bin/dir/*');
and see if that helps.

rdfield

update and change opendir to open

Replies are listed 'Best First'.
Re: Re: Changing data in a directory
by oaklander (Acolyte) on Feb 05, 2002 at 12:43 UTC
    Many thanks for all the assistance! It now works. I needed the * to make it work as you suggested:
    @files = glob('/perl/bin/dir/*');