http://qs1969.pair.com?node_id=1088315


in reply to Graph with VMstat output

Adding to zentara's good advice...

Your line
my @proc = ([@$run_stats_all],[@$unit_stats_all]);
has the same structure as the line in zentaras example
my @data = ...

You can find out about nested structures by using the core module Data::Dumper

use Data::Dumper; print Dumper( \@proc );
It would show the values of @proc along with their internal structure.

Anyway, in this case @proc will have two entries. Each is a reference to an anonymous array.
The first array holds the run_stats_all values,
the second one holds the unit_stats_all values.

Hope that helps!