my($text2) = "test_\1_\2_\3"; #### my($text2) = 'test_\1_\2_\3'; # Single-quotes don't interpolate #### my($text2) = "test_\\1_\\2_\\3"; # Escaping the backslashes