Thank you all for your solutions. I think rharsh's will work best for what I am doing now. I think my next step in learning Perl will be to discover how these hashes work. Thank you all again.
Thanks, but that won't work because neither sorted_data.txt or unique_data.txt exist when the program starts. The file print_job_output.txt does exist before the program runs.
When each program runs alone (ie: split it where it says ##extract the unique one now) they run fine.
I am somewhat new to Perl, but I have worked with batch files for a long time. I have two programs that I usually call from a batch file. The first sorts data and the second extracts the unique items. I would like to combine these into one script, but I am getting errors when the second OPEN...
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.