in reply to chopping lots of characters

If the four characters are always the same you might consider setting $/ and using chomp instead.