Perl Programming Question:
Download Job Interview Questions and Answers PDF
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)
Download Perl Programming Interview Questions And Answers
PDF
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? |