Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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> ) {

Replies are listed 'Best First'.
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 surveying the Monastery: (4)
As of 2016-06-27 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (335 votes). Check out past polls.