in reply to Problems with array references and 'use strict'
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.$vectorRef = { 'time' => \(), 'data' => \() };
What you want is:
Or perhaps just$vectorRef = {time => [], data => []};
as Perl will happily autovivify the arrays for you.$vectorRef = {};
Abigail
|
|---|