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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [ewh006] File Comparison (2 files): Matching Occurences: Edit Log



Zhris
Enthusiast

Feb 27, 2018, 11:32 PM


Views: 9236
Re: [ewh006] File Comparison (2 files): Matching Occurences

Hi,

That sounds correct. I'm guessing your keywords/phishing terms file has empty lines in it. With warnings enabled, I would have thought it would complain about an uninitialized variable. If this assumption is correct you can skip empty lines using something along the lines of next if $line =~ /^\s*$/. Otherwise attach your keywords and email files and we can test your actual raw data.

P.s. if and when you come to processing multiple emails, the code will definitely need a rework, it really needs to pre-process the keywords beforehand like our other solutions do. Feel free to ask for further help if you get stuck.

Chris


(This post was edited by Zhris on Feb 27, 2018, 11:42 PM)


Edit Log:
Post edited by Zhris (Enthusiast) on Feb 27, 2018, 11:39 PM
Post edited by Zhris (Enthusiast) on Feb 27, 2018, 11:42 PM
Post edited by Zhris (Enthusiast) on Feb 27, 2018, 11:42 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