in reply to efficient Array printing to a file
print takes a list, so there's no need to loop. You can take advantage of $", the list separator,
You could equally well set the output record separator $, to space and leave off the doublequotes.{ local $" = ' '; open my $lgh, '>>', $log or die $!; print $lgh "@x", $/ or die $!; close $lgh or die $!; }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: efficient Array printing to a file
by rjray (Chaplain) on May 27, 2004 at 23:23 UTC |