Perl Programming Question:

How many ways can we express string in Perl?

Tweet Share WhatsApp

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 PDF Read All 46 Perl Programming Questions
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?