in reply to create a file from an array
open FILE, "> somefile.txt" or die $!; print FILE join "\n", @array; close FILE;
Or:
{ local $, = "\n"; open FILE, "> somefile.txt" or die $!; print FILE @array; close FILE; }
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|