Perl Programming Question:
Download Questions PDF

How many ways can we express string in Perl?

Perl Programming Interview Question
Perl Programming Interview Question

Answer:

Many. For example 'this is a string' can be expressed in:
"this is a string"
qq/this is a string like double-quoted string/
qq^this is a string like double-quoted string^
q/this is a string/
q&this is a string&
q(this is a string)

Download Perl Programming Interview Questions And Answers PDF

Previous QuestionNext Question
How do I print the entire contents of an array with Perl?How do you give functions private variables that retain their values between calls?