Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Splitting multiple patterns

by sundialsvc4 (Abbot)
on Apr 09, 2012 at 15:16 UTC ( [id://964144]=note: print w/replies, xml ) Need Help??


in reply to Splitting multiple patterns

  • Split multiple times, using multiple statements.   This is no time for “golf.”   Keep it simple and direct.
  • If the problem appears to be one that has already been dealt with by a CPAN module, e.g. Text::CSV, use it in preference to a hand-made solution.
  • Get to know the many modules in Regexp::Common.   (Do a search ... there are many more than just the ones that the hotlink above will show you.)

Replies are listed 'Best First'.
Re^2: Splitting multiple patterns
by Anonymous Monk on Apr 09, 2012 at 15:30 UTC

    Wonderful addition to the thread, its as if none offered code that did exactly this

      Never said they didn’t, now did I?   Addressing a particular reply “very specifically” is great of course, for that person who is at that particular moment being addressed.   But any thread that is written on this forum is going to last for dozens of years, and every single bloke who encounters it in the future is not going to have “exactly this same problem.”   (And, they just might not want to wade through even a paragraph or two of “Perl code.”   Or, they might feel about my post exactly the same way you did.   Who knows?   Certainly not gonna self-censor the thread for worrying about such things.)

      I just pointed out a few things that, well do I remember from the time, I didn’t know at the time, and as a consequence, spent more effort on than I really needed to.   I would have found my comment useful.   (Soapboxing a bit here ...)   The real value of Perl is the vast CPAN library that goes with it.   But “vast” means that there are a helluva lot of things in there that maybe you had no idea were there.   We all have had the experience of writing something from scratch not knowing that something better was at-hand, and maybe benefiting from just a little nudge in an unexpected direction.

      I’m never commenting on anything to hear myself talk, and I have a Rhett Butler attitude about “XP.”   I have no idea who’s gonna find what useful, nor when nor why.   Just gonna do my best.

        Never said they didn’t, now did I?

        Nope, you simply pretended that they (including the OP) didn't, something I thought worthy of pointing out :)

        ... Certainly not gonna self-censor the thread for worrying about such things.

        Maybe you should? Write one of your meditative comments but don't publish/post, come back to the thread a week later, and ask yourself if you're really adding something ?

        I’m never commenting on anything to hear myself talk ...

        You kinda are.

        You're not writing to the OP, but to some unknown reader dozens of years in the future, but you're not acknowledging this in any way, you're simply ignoring the OP yet still talking at him.

        I imagine at minimum you should make explicit whom you're addressing, so as not appear more rude

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (9)
As of 2024-04-18 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found