Have you tried the simple approach:
use strict; use warnings; my @array = (...}; open OUTFILE, '>', 'filename' or die "Couldn't create filename: $!"; print join "\n", @array; close OUTFILE;
Update: fixed i/o direction and error string special variable!
In reply to Re: Saving an array to a disk file
by GrandFather
in thread Saving an array to a disk file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |