DEVFYI - Developer Resource - FYI

How many ways can we express string in Perl?

Perl Questions and Answers


(Continued from previous question...)

How many ways can we express string in Perl?

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)

(Continued on next question...)

Other Interview Questions