Hi
It would be great if you could use <code>-tags around your code and data input/output ... so I'm just guessing. It seems your issue is that only one, long line is shown in the output-file.
That's easy to solve: if you print \n a linefeed is produced. So you should add this linefeed after each element. So after $aln =~ s/\s/,/g; you could add $aln .= "\n";. Of course there are many other ways to reach the same effect, e.g. by using the special variable $,.
HTH, RataIn reply to Re^3: Replace spaces with commas and write to other file
by Ratazong
in thread Replace spaces with commas and write to other file
by sufi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |