From: mrwawa <[email protected]>
> On Jun 16, 7:14 am, [email protected] (Robert Citek) wrote:
> > On Tue, Jun 15, 2010 at 1:50 PM, mrwawa <[email protected]> wrote:
> > > Is this possible, and if so how can I do it?
> >
> > Can you give an example?
> >
> > For example, using colons instead of tabs, if the input looks like this:
> >
> > A:BC:D
> >
> > then you want it to look like this:
> >
> > A:B:C:D
> >
> > Is that right?
> >
> > Regards,
> > - Robert
>
> That is correct.  I decided to just write the output to a separate
> file and then delete the original file.  Thanks for all your help.
>
> Wade

That's all you can do. If you just wanted to change a few characters
you could open the file for read&write (open my $IN, '<+', $file or
...), but since you need to insert characters you have to create a
new file and copy the data, you can't expect the system to magicaly
shift the data after the row you amended.

Jenda
===== [email protected] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to