in reply to Re: file substitutionin thread file substitution
This foreach my $junk (@junk); isn't valid perl syntax.
If you want to name the control variable you have to use the foreach my $name (@things) { #use $name }, not the postfix form