Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Word Count and Match

by kcott (Archbishop)
on Jan 07, 2021 at 21:29 UTC ( [id://11126563]=note: print w/replies, xml ) Need Help??


in reply to Word Count and Match

G'day PilotinControl,

I see:

  • Partial code that no one can test.
  • No input data.
  • No output data.
  • Useless error reports: "some weird happenings" and "it did nothing".

I think you've been here long enough (17 years and 210 posts) to know better.

My best guesses:

  • Use Text::CSV to extract data. It'll run faster if you also have Text::CSV_XS installed.
  • Remove duplicates from your regex alternation.
  • Apply boundary assertions to your regex.
  • Remove the 'i' modifier from your regex.

Kindly read "How do I post a question effectively?" before posting again. Follow what it says if you do post again. You'll probably get better answers if you include an SSCCE.

— Ken

Replies are listed 'Best First'.
Re^2: Word Count and Match
by LanX (Saint) on Jan 07, 2021 at 21:52 UTC
    > I think you've been here long enough (17 years and 210 posts) to know better.

    hmm ... compare for instance Remove a Line

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      ++ I'm impressed that you could be bothered to go back through eight years of his posts to find that.

      It's pretty much the same code: railcar is now word (or name in later posting); and Boxcar is now Bob (or David in the same later posting) and so on.

      — Ken

        > ++ I'm impressed that you could be bothered to go back through eight years of his posts to find that.

        Well, you know ...

        ... I'm just a diligent reader with a photographic memory!

        That's why I never cheat by super searching something like text="Word count" & author="Pilotincontrol" ... ;)

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery

Log In?
Username:
Password:

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

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

    No recent polls found