in reply to Re: UNC vs. standard Perl functions
in thread UNC vs. standard Perl functions

Actually, double-\\ in a single-quoted string is interpreted as a single \ but otherwise \ does not need to be escaped. So this also works:
perl -e "print -d '\\\\server\share'"

Replies are listed 'Best First'.
Re^3: UNC vs. standard Perl functions
by ikegami (Patriarch) on Mar 16, 2005 at 15:25 UTC

    True. Stylisticly, I prefer to escape them all, so I don't have to look at the context to know what \n means (for example). Adopting that convention would have avoided the OP's problem.