# dude, I actually corrected it after I tested it. I am a regex loser. I should be banned from Unix for life. $escape =~ s/\'/\\'/;