Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: SoundOff Program (eg. for Pandora Radio)

by liverpole (Monsignor)
on Dec 05, 2011 at 13:07 UTC ( #941832=note: print w/replies, xml ) Need Help??

in reply to Re: SoundOff Program (eg. for Pandora Radio)
in thread SoundOff Program (eg. for Pandora Radio)

    Why add the leading whitespace and colon when you are just going to remove them anyway?

Because it's far more easy to visually parse when it's indented, and I use that formatting trick in other programs, where I sometimes have to hand-edit the text, and it's much easier when the line begins with ':' than without.

    And the substitution would be more efficient as..."

So what? It's in the startup code so it's not a performance hit, and I think the "unneeded" capturing parentheses makes it easier to read. But, yeah, thanks for "enlightening" me on regular expressions.

Honestly, I posted this because I thought it might be useful to a few others besides me, not because I needed the code nit-picked for insignificant optimization. Did you even run it? Or was this just a chance to show off your ikegami-like superiority? It's your type of comments that make me tired and sad that I even post here any more.

  • Comment on Re^2: SoundOff Program (eg. for Pandora Radio)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2021-10-16 09:04 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (69 votes). Check out past polls.