A question: do you really need to join your array into a string?
Unless you need your scalar $pms for something else later in your programme, I would suggest doing away with this line:
my $pms = join("\n", @foundfiles) . "\n";and printing your array directly:
print "$_\n" for @foundfiles; print MYOUTPUT "$_\n" for @foundfiles;
dave
In reply to Re: Help with error msg "Useless use..."
by Not_a_Number
in thread Help with error msg "Useless use..."
by Lori713
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |