Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: HTML::Parser fun

by kyle (Abbot)
on Jun 04, 2008 at 14:40 UTC ( [id://690151]=note: print w/replies, xml ) Need Help??


in reply to Re^2: HTML::Parser fun
in thread HTML::Parser fun

I can't speak for others, but here are a couple of the benefits I see.

  • Less escaping necessary. q{brace {fun}} does what I want. I can say q{"quote" 'fun'} too. You do need to escape braces in a q{} if they're unbalanced, but otherwise it just works.
  • It stands out a little more for small expressions (q{} vs '').
  • Even if I don't have to escape anything now, I might have to later. If I code with q{} today, it saves me having to change to it later.
  • Likewise, it's easier to go from q{} to qq{} than it is to go from '' to "" if my interpolation behavior needs to change.

Replies are listed 'Best First'.
Re^4: HTML::Parser fun
by FreakyGreenLeaky (Sexton) on Jun 04, 2008 at 14:50 UTC
    OK - I understand. Something akin to the philosophy of always including a dangling comma in a list declaration - easy to add elements later without error, etc.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found