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: [dsaliba] query a file, search another and output a third: Edit Log



Laurent_R
Veteran / Moderator

May 29, 2013, 10:50 AM


Views: 408
Re: [dsaliba] query a file, search another and output a third

Please provide your test files.

One possible issue is that you prepare your file under Windows and run them on *nix, or vice-versa. You would get end of line characters problem, and chomp is not sufficient in this case.

If this is the case add the following line after chomp:


Code
$line =~ s/\r//g;


The other thing puzzling me is that you don't chomp what you put into your hash.

BTW, imsi, msisdn... it looks like you and I are working in the same industry. Wink


(This post was edited by Laurent_R on May 29, 2013, 2:17 PM)


Edit Log:
Post edited by Laurent_R (Veteran) on May 29, 2013, 2:17 PM: corrected on typo


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives