in reply to Saving an array to a disk file
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Saving an array to a disk file
by meraxes (Friar) on May 26, 2006 at 03:38 UTC | |
by GrandFather (Saint) on May 26, 2006 at 03:55 UTC | |
by chromatic (Archbishop) on May 26, 2006 at 06:21 UTC | |
by meraxes (Friar) on May 26, 2006 at 04:02 UTC | |
by blazar (Canon) on May 26, 2006 at 10:39 UTC |