I'm wondering if there is any Perl function that acts as inverse of substr. If substr selects a part of the string defined by coordinates, this function skips this part and instead captures string parts flanking given coordinates.
It can be just done using substr with coordinates I want for each flank, but I was wondering if there is something built-in for such cases.