Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: A refactoring trap

by Albannach (Prior)
on Aug 16, 2005 at 21:22 UTC ( #484252=note: print w/replies, xml ) Need Help??

in reply to A refactoring trap

One of my personal rules: Always question a rule that starts with always.

While I agree that /x can be mighty handy, I think that your case is so simple as to be made less clear by the change. Perhaps this is because I am used to certain regex idioms, or I just don't like your choice of braces, but I would have thought your first version was better, apart from the explict use of $line which is an improvement.

Well the best thing about opinions is that you can always get another.

I'd like to be able to assign to an luser

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://484252]
[LanX]: yes
[hippo]: Why not just try and see?

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2018-07-23 15:36 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (469 votes). Check out past polls.