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


in reply to Re: Problem with substr
in thread Problem with substr

Switching to s/// did the trick. Thanks :)