in reply to Re: splitting a string into arbitrary lengths
in thread splitting a string into arbitrary lengths

ahh, very nice...thanks!
  • Comment on Re^2: splitting a string into arbitrary lengths

Replies are listed 'Best First'.
Re^3: splitting a string into arbitrary lengths
by demerphq (Chancellor) on Jun 22, 2005 at 22:33 UTC

    (un)pack will likely be the fastest way to do this. Don't forget you can put spaces in appropriate places in the pattern to make it easier to read. (I say 'pack' because the useful documentation for 'unpack' is in 'pack'. :-)

    ---
    $world=~s/war/peace/g