in reply to software error - Can't cd to : HELP !!

It looks like you only have a single images directory. Is that true? If so, you can dispense with File::Find::Rule altogether. Just look in the directory yourself, something like this:

opendir D, $imagedir or die "Can't open $imagedir: $!\n"; @files = grep($files, readdir D); closedir D; # Rest of your code here
The main strength of File::Find and friends is that they can recurse through an entire directory structure. If you don't need that functionality, stick with something simpler/easier to debug.

Replies are listed 'Best First'.
Re^2: software error - Can't cd to : HELP !!
by calypso (Initiate) on Feb 07, 2005 at 17:35 UTC
    I got it to work with File::Find::Rule, I just had to chdir. For some reason the rule wasnt doing it. thanks for the tips.