Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: “ and ” (and friends) in sourcecode

by dragonchild (Archbishop)
on Dec 29, 2005 at 01:21 UTC ( [id://519694]=note: print w/replies, xml ) Need Help??


in reply to “ and ” (and friends) in sourcecode

There's two scenarios you might have smart-quotes in your source code:
  1. Your editor put them there because its programmers thought they were smarter than you.
  2. You put them there within some string in your source code.

In scenario 1, you need to find the settings that will affect that and fix them. The best way to do that is to change editors. Both emacs and vim are available for Windows, as well as many other excellent editors written for programmers. Pick one, learn it, and use it. I like vim, but that's just me. YMMV.

In scenario 2, if you're having issues, just change your quoting operator. Instead of ', use q{}. Instead of ", use qq{}.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re: “ and ” (and friends) in sourcecode

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2024-04-19 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found