in reply to Remove Duplicates from one text file and print them in another text file.

Can't locate File/IO.pm in @INC
That error means that you told perl to load in the File::IO module, but it could not be found in the search path. Since your code doesn't seem to rely on that module anyway, try deleting the following line:
use File::IO;

Please edit your post to use code tags for your code and error messages: Writeup Formatting Tips

To clean up other warnings and errors, change:

$result_file = "C:\Users\spullabhotla\Desktop\TestToRemoveDuplicates.t +xt";
to (my and single quotes):
my $result_file = 'C:\Users\spullabhotla\Desktop\TestToRemoveDuplicate +s.txt';

BTW, there is a Core module named IO::File, if that's what you are trying to use.

Replies are listed 'Best First'.
Re^2: Remove Duplicates from one text file and print them in another text file.
by bedohave9 (Acolyte) on Jun 04, 2012 at 18:25 UTC

    Thank you. It did work for me. The code did execute without, but the console is showing a bar blinking on the screen. Does it means, there are no duplicates in the file. Please let me know. I am kind of confused with the console behavior. Also, I could not able to find the IO::File in the Perl Package Manager. Can I try copying the code in IO::File in a file and save it in the library with the Perl extension. Would that work?

      Also, I could not able to find the IO::File in the Perl Package Manager.
      IO::File is a Core module, which means that it should be available to you. Try this at your command prompt:
      perldoc IO::File

        Thank you very much. I could able to use this w/o errors.