Alternately use the join function such as
or print a delimiter after each element (even after the last) of the array with a for loop likeprint $fh join(":", @array);
print $fh $_, "\n" for @array;
In reply to Re: Printing Array to a file
by ambrus
in thread Printing Array to a file
by paragkalra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |