in reply to Split string into equal parts

You're working way too hard:

$tempStr = 'BE65826000483296'; print join ' ', unpack '(A4)*', $tempStr; BE65 8260 0048 3296

Replies are listed 'Best First'.
Re^2: Split string into equal parts
by kalyanrajsista (Scribe) on May 29, 2010 at 13:58 UTC
    Thanks BrowserUK, Your one-liner solves my problem