Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 musing on the Monastery: (7)
As of 2014-10-25 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (145 votes), past polls