in reply to Re^3: true from (-e "") on Windoze (" is an illegal filename character
in thread true from (-e "") on Windoze

But, it would be 'correcting' for a bug ... in the CRT

Yeah ... and I guess that if it were to be 'corrected' in perl (as I was recommending), there's always the chance that someone will object because we're no longer following Windows CRT behaviour.

Maybe perl should warn about this whenever
$file =~ /^"/ && $file !~ /[^"]/ && $^O =~ /MSWin32/i
(which, I think, are the pertinent conditions) but I don't think I'll take that up with the powers that be.

Cheers,
Rob
  • Comment on Re^4: true from (-e "") on Windoze (" is an illegal filename character
  • Download Code

Replies are listed 'Best First'.
Re^5: true from (-e "") on Windoze (" is an illegal filename character
by BrowserUk (Patriarch) on Jul 03, 2012 at 18:40 UTC
    Maybe perl should warn about this

    The more I think about it, the less I like the idea of a warning for what is just platform specific behaviour.

    There's that "non-portable" warning about integers > 2**32 that pops up on 64-bit platforms; it just bugs me.

    I think the simplest solution is the best here: just add a note about it to the stat docs.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?