Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Rewrite in a more compact way

by moritz (Cardinal)
on Nov 27, 2008 at 12:16 UTC ( #726392=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Rewrite in a more compact way
in thread Rewrite in a more compact way

Since andreas1234567 asked for a compact way, I also used a compact way to quote strings.

I know that PBP encourages q{..} and discourages '...' on "noisy" strings, but it's one of the things I don't like visually. (I do resort to other quoting constructs if it saves me backslashes for escaping, which are usually a bit confusing).

Note that your version also isn't consequent, because it still uses ',' instead of q{,}.


Comment on Re^3: Rewrite in a more compact way
Select or Download Code
Re^4: Rewrite in a more compact way
by ForgotPasswordAgain (Deacon) on Nov 27, 2008 at 12:33 UTC
    FWIW, I systematically use q{} for SQL strings. It's the best I've come to that doesn't require backslashing or later changing the quotes to something else.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2014-08-20 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (113 votes), past polls