in reply to Help with error msg "Useless use..."
my $pms = join("\n", @foundfiles), "\n";
(Note the period which is the string concatination operator, instead of the comma, which in scalar context evaluates its LHS, throws it away, then evaluates and returns its RHS)my $pms = join("\n", @foundfiles) . "\n";
Update: Thanks tye. This will teach me to try and answer a PM post while answering support calls at work. Next time I'll ignore the calls.. must have my priorities straight.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with error msg "Useless use..." (nit)
by tye (Sage) on Sep 15, 2003 at 16:11 UTC |