Hello there,
I want to read a input from user and output something like 'input\b\c\d', which has to escape all backslashes if using double-quote. For instance, the following code would work.
Just curious if any other way I could do it without specify all backslashes? Since that takes much efforts when the sequence is long.
Code:
#!/usr/bin/perl
$letterA='A';
print "$letterA\\b\\c\\d';
Any idea is well appreciated,
Thanks!