Hi
I am writing some Perl here, but I am sure there must be a neater way of writing this (its horribly messy!!)
Any ideas greatly appreciated
Thanks
I am writing some Perl here, but I am sure there must be a neater way of writing this (its horribly messy!!)
open (DATA, "/usr/local/rrdtool-1.2.19/bin/rrdtool fetch dashrrd.rrd LAST -s -60s |") || die ("Source data not found <br> $!
");
foreach my $line (<DATA>)
{
chomp $line;
$line=~ s/\://g;
push @dataarray, split(/ /, $line);
push @bigarray, [ @dataarray ];
shift @dataarray while @dataarray;
}
close (source);
Any ideas greatly appreciated
Thanks