How to print escaping characters inside a string in perl?



How to print escaping characters inside a string in perl?..

Answer / Neha Raghav

To print special characters like double quotes (") or backslashes () in Perl, you can escape them using backslashes. For example: print "This is a string with ".""" double quotes";

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

What is the use of -n and -p options?

1 Answers  


Which of these is a difference between Perl and C++ ?

1 Answers  


Explain splicing of arrays?

1 Answers  


Differentiate use and require?

1 Answers  


What interface used in PERL to connect to database? How do you connect to database in Perl?

1 Answers  


What is the difference between use and require in perl programming?

1 Answers  


When would `local $_' in a function ruin your day?

1 Answers  


Create a function that is only available inside the scope where it is defined ?

1 Answers  


what are prefix dereferencer and list them out?

1 Answers  


How do you give functions private variables that retain their values between calls?

1 Answers  


Suppose an array contains @arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’). How to print all the contents of the given array?

1 Answers  


What is v-strings?

1 Answers  


Categories