Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Filtering Source Text File with 2nd Text File of Terms

by jwkrahn (Monsignor)
on Apr 03, 2012 at 05:25 UTC ( #963171=note: print w/ replies, xml ) Need Help??


in reply to Re: Filtering Source Text File with 2nd Text File of Terms
in thread Filtering Source Text File with 2nd Text File of Terms

while my $term (<F1>) {

That is a syntax error.    Perhaps you meant:

while ( my $term = <F1> ) {


foreach my $source (<F2>) {

Why would you read in the whole file instead of just reading one line at a time?    Perhaps you meant:

while ( my $source = <F2> ) {


Comment on Re^2: Filtering Source Text File with 2nd Text File of Terms
Select or Download Code
Re^3: Filtering Source Text File with 2nd Text File of Terms
by Riales (Hermit) on Apr 03, 2012 at 17:29 UTC

    Argh, you're absolutely right. I guess I was just too eager to fire off my response. I'll change my original post.

Re^3: Filtering Source Text File with 2nd Text File of Terms
by Loops303 (Novice) on Apr 04, 2012 at 04:31 UTC
    Thanks for catching that.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (15)
As of 2015-07-06 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls