Randal L. Schwartz wrote:
Gunnar Hjalmarsson writes:
/(\w+)(?:\s+$RE{num}{real}){3,3}\s+(\w+)/;
That's an alternative, but would it necessarily be better? To me,
using a module for such a trivial thing just creates another
level of abstraction without actually making it easier.
Can we agree to disagree on that?
Sure.
Once you understand Regex::Common, it becomes a nice abstraction.
Having said that, I don't yet. :)
Please feel free to like any module you don't understand. ;-)
I for one concentrate on learning - and practicing - the basic regex
syntax. That way I get better prepared when I need to write less
common regexes.
But that's me. I'm not claiming that Regex::Common is not a useful
tool for those who like it. I'm rather saying that it should better be
considered a matter of personal preferences, rather than a matter of
preferred programming style.
Can we possibly agree on that?
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>