Multiple choice technology programming languages

How will you dereference a scalar variable

  1. $$variablename
  2. @$variablename
  3. $@variablename
  4. %$variablename
Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To dereference a scalar reference, you use $$variablename - the first $ indicates scalar context, and the second $ dereferences the scalar reference. @$variablename (option B) would dereference an array reference, and %$variablename would dereference a hash reference.