in reply to Re: How to check If file exists?
in thread How to check If file exists?
And yes one of your issues is the single ticks. You should really always try to bring at least the concantenation character (.) out of any string literal.
or if you really need to quote the variables use:if (-e $path.$imagename) {}
if (-e "$path"."imagename") {}
|
|---|