Thanks prex1,
That works but I get a few errors such as
Use of uninitialized value $_ in scalar chomp at ./trial line 11, <DATA> line 5.
readline() on closed filehandle FILE at ./trial line 14
Use of uninitialized value $ID1 in string eq at ./trial line 64, <DAT> line 1
The files I'm...
I've written the following, it is very crude but works till the last step, where it has to paste two lines only if their ID's are the same.
#!/usr/bin/perl -w
use warnings;
######## READING FILE ONE ##########
$[ = 1;
open(DATA, "< list1") or die "Failed to open list1";
open(MYOUT1, ">...
I need help in reading and pasting two files.
File list 1 - list of files ex: d3jf_fh_xyz and so on
File list 2 - list of files ex: d3jf_fh_abc
each file has one line of numbers separated by spaces. If the beginning part of the file name in list 1 matches file name in list 2 (i.e d3jf_fh), I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.