in reply to Terms shortener :-)
For pre-5.20 perls, one needs -alpe , as a ins't implied by F .
I'd also try
(needs 5.10).perl -pe 's/.\K(.*)(?=.)/length$1/e'
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
In Section
Cool Uses for Perl