The global variable $" contains the separator, though it's often clearer to use join:
use 5.010; # this has the same effect as... { local $" = ', '; say {$fh} @array; } # a shorter approach say {$fh} join ', ', @array;
In reply to Re: Printing Array to a file
by chromatic
in thread Printing Array to a file
by paragkalra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |