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


in reply to Re^2: What is the best solution to swap input data?
in thread What is the best solution to swap input data?

That's fenLisesi's solution here in this thread, only using an assignment instead of the 4-arg form of substr.

-- Hofmator

Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.