This node exists to demonstrate how to create references to various data types before actually storing any data. This node has been created because I am tired of trying to figure it out from scratch every time.

At this time, I am only aware of references to hashs and to arrays. Since objects are just hashes bound to some special syntax, I will ignore them.

Creating a reference to an empty hash

my ($reference);
$reference = {};

Creating a reference to an empty array

my ($reference);
@{$reference} = ();