in reply to Array of Hashes
Either that, or else you'll want to pass an array index value in the call to this sub (e.g. in case you want to assign different values to an existing array element).sub setOutputFiles { my ($captureId,$outputFile,$fileType) = @_; push @outputFiles, { $captureId => $outputFile, 'type' => $fileType }; print Dumper(\@outputFiles); }
|
|---|