Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Im not sure what this regex is called or how to write it

by jpl (Monk)
on Jul 28, 2011 at 17:25 UTC ( #917305=note: print w/ replies, xml ) Need Help??


in reply to Im not sure what this regex is called or how to write it

There's nothing map can do that cannot be accomplished by a loop. Unless you are after one-liner bragging rights, your cascading filters are likely to be a good deal easier to understand (and extend, and get right) than a single complicated regular expression. My advice would be to use the cascading filters unless there is a really compelling need not to.


Comment on Re: Im not sure what this regex is called or how to write it
Re^2: Im not sure what this regex is called or how to write it
by misterperl (Sexton) on Dec 18, 2012 at 14:36 UTC
    >> There's nothing map can do that cannot be accomplished by a loop. Unless you are after one-liner bragging rights.... Sadly, my first programming language I learned, c 1977, was APL, and henceforth I was *conditioned* to believe anything over 1 line was excess.. My Bad!
      ... first programming language I learned ... *conditioned* to believe ...

      Another example of the "Rubber Duckie Syndrome."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-05-25 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (487 votes), past polls