Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail

by roho (Bishop)
on Sep 03, 2020 at 21:39 UTC ( [id://11121337]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail
in thread Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail

Understood. You're right. If Perl started removing quote characters without permission that would open the door to all sorts of unintended consequences.

I'm focused on developing on Windows at the moment, and I forgot about the other environments (*nix, etc.) that have different rules and allow different characters in filenames.

Thanks again for your input and clarification.

"It's not how hard you work, it's how much you get done."

  • Comment on Re^4: Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail

Replies are listed 'Best First'.
Re^5: Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail
by Marshall (Canon) on Sep 03, 2020 at 22:51 UTC
    I currently develop Perl code exclusively on Windows. However, some of my clients run my code on Unix and it almost always works even though I don't test it. My code does not create any filename that would not be a proper Perl variable name. That is more restrictive than it needs to be. However, if I create file "abc_123" (no spaces in the file name) from "abc 123" that does not seem to cause any significant issues for Windows users - they get it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11121337]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2026-05-12 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.