I have strings of the form "CharNumCharCharChar", for example s5tgn, and I want to store the number, so for the example here I want to take s5tgn and store 5 in a variable.
Does anyone know how to do this in Perl?
Thanks!
All files are in the same directory, and they are named as output0.txt, output1.txt, ..., output499.txt
Thanks for the code KevinADC! I just have a few questions: Do I need to pass the name of each file to the program from the command line? And could you please briefly describe what the while...
Hi,
I have 500 different data files that each contain one line of text. I would like to open each file, grab the text and write it to another file, so that when I am finished, I will have all the lines of data stored in one file.
Does anyone know of a way to accomplish this using Perl?
Thank...
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.