Benny69, I have no idea why that works

What is going on?

I guess the left($,~) is some sort of walk through the string...

But I just can't see how this works. Any chance of an explination?
_________________________
Every day is a school day