in reply to No such file or directory when moving grep results

You need to prepend the directory name to your file. This works for me:
move("$directory/$file", $newlocation) || die "could not move file +s: $!\n";

Replies are listed 'Best First'.
Re^2: No such file or directory when moving grep results
by Matthew Tod (Initiate) on Nov 10, 2011 at 18:09 UTC

    Thank you very, very much.