in reply to Re^2: Doesn't like a Scalar, as a folder path
in thread Doesn't like a Scalar, as a folder path

This is such a common error case that Perl even outputs a warning for it if you let it. Put use warnings; at the top of your program to tell Perl that you want it to tell you about common programming errors that it can recognize.