Re: Manipulating file content
Hello Bolan,
Bolan Meek wrote:
> Here's the replacement code, in a script, instead of a one-liner.
> (I could've one-lined it, but this'll be more understandable:
> look! I even added _comments_)
>
> [Perl code snipped]
This works perfect, well, almost perfect. It inserts a space after each
comma. The fix is a no-brainer of course ($newRow[$i] .= "$entry[$i],";
in the first loop and a $newRow[$j] .= " " at the beginning of the
second).
Thanks heaps, Viktor
--
Viktor Rosenfeld
E-Mail: mailto:rosenfel@informatik.hu-berlin.de
HertzSCHLAG: http://www.informatik.hu-berlin.de/~rosenfel/hs/
Reply to: