Multiple choice technology programming languages

Assume that $var has the value hello . What is the value of the following sting?q (It’s time to say $var);

  1. It’s time to say $var

  2. It’s time to say hello

  3. None

  4. Both

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Perl, single-quoted strings do not interpolate variables - the string is taken literally. So (It's time to say $var) outputs exactly "It's time to say $var" without replacing $var with its value. Double quotes would interpolate the variable to show "hello".