CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner: Re: [smilebey] Counting matches with an array of strings: Edit Log

Veteran / Moderator

Jan 3, 2013, 3:24 PM

Views: 3252
Re: [smilebey] Counting matches with an array of strings

In Reply To
But the concern by Bill might be a problem. Dont know how severe.

Is there any way to go through the string from word to word? Split is a solution but that would take too much computing time since my strings are the content of long text files.

Although some of the examples given by Bill can be solved by technical improvements, the general issue raised by Bill goes far beyond technical solutions. The problem is that the bill of requirements is unsufficiently detailed. If my client (or my boss, or whoever) asks me to recognize the word Virginia in a text file, I will happily do it, but don't ask me to recognize whether is it an American State or the first name of my elder daughter. No way to know, unless you can give me a context condition, a business rule, or some other form of litmus test to find out.

(To tell the full truth, my daughter's first name is really Carolina, not Virginia. That makes the test somewhat easier, just look for "North" or "South" before the word Carolina if it is a State of the Union or my daughter's name, but that leaves the Virginia or Georgia issue, as well as many others, unsolved.)

(This post was edited by Laurent_R on Jan 3, 2013, 3:36 PM)

Edit Log:
Post edited by Laurent_R (Veteran) on Jan 3, 2013, 3:36 PM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives