redtux has asked for the wisdom of the Perl Monks concerning the following question:
ie: unpack "(a30)*, $mystring
this splits exactly at 30 chars, whether or not it is in the middle of the string
I would like to split at 30 or the nearest word boundary
Is this possible or do I need to do some voodoo on split?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unpack and words (updated)
by haukex (Archbishop) on Mar 24, 2021 at 15:17 UTC | |
|
Re: unpack and words
by Marshall (Canon) on Mar 26, 2021 at 04:04 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |