in reply to Re^2: true from (-e "") on Windoze
in thread true from (-e "") on Windoze

OK, how about this? (I've tested and it is working correctly for $file = '""'; on OS X.)
for ($file) { say "nope (empty quotes)" when /""/; say "yep" when -e $file; default { say "nope (doesn't exist)"} }

Replies are listed 'Best First'.
Re^4: true from (-e "") on Windoze
by CarolinaPerler (Acolyte) on Jul 02, 2012 at 19:33 UTC
    Yeah, the odd behavior only occurs on Windoze. UNIX/Linux/Mac work just as you'd expect, returning false for the '-e' on a pair of empty double quotes.
      Did you get a chance to test this code? I think it might solve your problem since the first thing it does is look for a match to double quotes before checking whether the file exists.