my $GetEnt = $ent4->get(); #Which is "test_\1_\2\_3" print "$GetEnt\n"; #This give me some funny symbols for \1 \2 and \3 #I need the string to keep the backslashes #Here's what I tried but it doesnt do what I want my($text2) = "test_\1_\2_\3"; my($text3) = q{'$text2'}; print "$text3\n";