in reply to Re: Insert at regular increments
in thread Insert at regular increments
substr($_, 321, 0) = "\n"
to avoid replacing some poor unsuspecting character with the newline.
And one question: how would I use this approach to add newlines after every record in the file (i.e. after every 320 characters)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Insert at regular increments
by broquaint (Abbot) on Jul 22, 2002 at 21:39 UTC | |
by sauoq (Abbot) on Jul 22, 2002 at 22:32 UTC | |
by EyeOpener (Scribe) on Jul 23, 2002 at 00:13 UTC | |
by broquaint (Abbot) on Jul 23, 2002 at 13:37 UTC | |
by Aristotle (Chancellor) on Jul 23, 2002 at 14:12 UTC | |
by sauoq (Abbot) on Jul 23, 2002 at 19:21 UTC | |
by EyeOpener (Scribe) on Jul 22, 2002 at 22:01 UTC |