in reply to is there a file/directory?

You would be looking for the -e file test. More information can be found on the perlfunc node

Ooohhh, Rob no beer function well without!