http://www.perlmonks.org?node_id=504084


in reply to splitting up a long text at regular intervals

I had a question like this, where I wanted to read from a file in chunks, not specified by number of lines but by number of bytes, but still, you might find it interesting.


($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
  • Comment on Re: splitting up a long text at regular intervals