Perl Programming Question:
How many ways can we express string in Perl?

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)
"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)
Previous Question | Next 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? |