Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-12-21 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls