in reply to Problems with array references and 'use strict'

$vectorRef = { 'time' => \(), 'data' => \() };
This doesn't do what you think it does. \() create a list of references to things inside the parens, making it an empty list. So, you create a reference to a hash containing just one key/value pair, 'time' being the key, 'data' being the value.

What you want is:

$vectorRef = {time => [], data => []};
Or perhaps just
$vectorRef = {};
as Perl will happily autovivify the arrays for you.

Abigail