I need to input a variable into this line to process many files dynamically:
open (INFILE, "< your_input.fa")
I don't know how to accomplish this using Perl. I would normally use bash commands in a similar manner:
NAME1=$PWD
NAME=$(basename "$NAME1")
bwa mem $NAME.fastq.gz
Additional info:
File names vary in the first 6 characters but have regular suffixes:
xx-nnn_regular.txt
Files are located in directories named after the first six characters:
xx-nnn > xx-nnn_regular.txt
I have looked in the Perl manual but I do not have a programming background, will someone please help me out?
How do I run a Perl script on multiple input files with the same extension? I used the info here to answer my question-- thanks!