in reply to Help with error msg "Useless use..."
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Help with error msg "Useless use..."
by Lori713 (Pilgrim) on Sep 15, 2003 at 17:58 UTC |