You seem to be performing the same operation on different variables half a dozen times. Why not use a subroutine instead? You might also be interested in this post regarding all those backslashes.
Comment on Re: Best way to "Skip" a set of operations