How to dereference a reference?

Q

How to dereference a reference?

✍: Guest

A

There are a number of ways to dereference a reference.
Using two dollar signs to dereference a scalar.
$original = $$strref;
Using @ sign to dereference an array.
@list = @$arrayref;
Similar for hashes.

2013-09-13, 1955👍, 0💬