foreach my $row (@sensor_h) { push(@draw, {draw => { file => "../data/$row", legend => "Source 1", thickness => 2, color => '00FF00' }}); }