in reply to Re: a hash/array problem and can contents of an array be printed as one line
in thread a hash/array problem and can contents of an array be printed as one line
You will end up with a file with lots of trailing commas.# write file delimited by comma space (even last item) foreach $data (@vals) { print OUTFILE "$data, "; } print OUTFILE "\n";
print OUTFILE join(', ', @vals) . "\n";
Hope this helps
Aziz,,,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: a hash/array problem and can contents of an array be printed as one line
by synapse0 (Pilgrim) on Jul 16, 2001 at 03:34 UTC |