So its better to use if(-d "$dir/test") {


I see. Well I would not call this good practice. You simply have to quote the string literal. Or construct it via concatenation:


if(-d ($dir . "/test")) {

I would use the first form. Anyway my point was that you should not quote a simple variable:
if (-d "$dir") { ...
Unless you really really know why.


Yeah.. Makes sense. Thanks..




Reply via email to