http://qs321.pair.com?node_id=1171487


in reply to Get a known substring from a string

This sounds as a XY Problem to me, and I suspect that you want to do Z, of which you haven't told us anything.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
  • Comment on Re: Get a known substring from a string