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.
In reply to Re^3: Doesn't like a Scalar, as a folder path
by Corion
in thread Doesn't like a Scalar, as a folder path
by ArifS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |