I am using the script below to find and replace while comparing variable names. Basically there are two sperate files where I extract a register name. When two registers match I need the register name to replaced with an old name. the problem with the script below is that it will do the replace...
How would I reenter a while loop within a while loop. So far my code reads a line from the first file and checks the first line of the second file to see if they are the same. If they do not match the next line of the 1st file is read, but I need the 2nd line of the first file to be read. Thus...
I have a list of strings that are being extracted by pattern matching. I would like to count the number of times any particular string is repeated. I have no idea whether I should store the strings to an array or print to a text file. Any ideas?
Sample Data
pad1
sigA_1[1]
input
pad2
sigB
output...
I am new to Perl so this may be a rather simple task, but I have tab delimited text file that I need to parse through(except the comments that have quotations). For example if I have the following data in a text file what would be the best way to write a script that would output the data in a...
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.