Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: comparing an ID fom one file to the records in the second file

by ag88 (Novice)
on Dec 02, 2017 at 11:37 UTC ( [id://1204720]=note: print w/replies, xml ) Need Help??


in reply to Re: comparing an ID fom one file to the records in the second file
in thread comparing an ID fom one file to the records in the second file

Thankyou so much for the help. I really appreciate it. But I am unable to print the line having matched ID via (print $line if exists $ids{$id};). I am trying to figure it out :(

  • Comment on Re^2: comparing an ID fom one file to the records in the second file

Replies are listed 'Best First'.
Re^3: comparing an ID fom one file to the records in the second file
by Laurent_R (Canon) on Dec 02, 2017 at 11:45 UTC
    Hi ag88,

    please check the content of your hash. There may be invisible characters in the lines of your first file (like extra space, carriage return, etc.). The best might be to use something like the Data::Dumper module (which is core, so it should be on your machine).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-25 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found