Re: Use Perl to extract keywords

2005-04-27 Thread M. Kristall
Robert Kerry wrote: I want to use Perl to extract keywords from plaintext, don't know whether there are some exsiting package / algorithm for doing that? Thank you. Regards, Robert. If you are attempting to "extract" keywords as a search engine might (i.e. find all words of substance), you might s

Re: Use Perl to extract keywords

2005-04-25 Thread John Doe
Hi Robert Am Montag, 25. April 2005 01.45 schrieb Robert Kerry: > I want to use Perl to extract keywords from plaintext, don't know > whether there are some exsiting package / algorithm for doing that? > Thank you. In the case you know the keywords (I suppose so, otherwise you would search word

Re: Use Perl to extract keywords

2005-04-24 Thread Ezra Taylor
Robert: An example is below. #!/usr/bin/perl -w open(FILE,"/etc/passwd") || die "Cannot open file: $!"; while ( ) { if( /Ezra/ ) #I'm searching for strings with the word Ezra. { print $_; # Now I'm printing lines with the name Ezra } } close(FILE); On 4/24/