I was actually doing the exact same thing. The issue was I was reading the data through perl -d and was using the 'x' command. Should have used the 'p' command to print the data instead. That's why I was seeing that extra '\'. Thanks for your help though