Another problem with your code:
for (@array) { #replace wildcards with specific titles of subjects s/Subjectx/$files[$s]/g; }
You are using a fixed string for a regular expression which means that the first time through the loop the string "Subjectx" will be replaced so that the second time through the loop the string will not exist and nothing will be replaced.
In reply to Re: Loop is not working
by jwkrahn
in thread Loop is not working
by ozdemmer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |