Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: perl code not working after moved new host with latest perl version

by oiskuu (Hermit)
on Mar 28, 2015 at 21:17 UTC ( [id://1121688]=note: print w/replies, xml ) Need Help??


in reply to perl code not working after moved new host with latest perl version

It should be noted that rrdtool comes with (optional) perl interface. If properly installed, you don't need external commands to access the data. For example (untested):

use RRDs; ... my ($start,$step,$names,$data) = RRDs::fetch("$dir/$f", "AVERAGE", "--start", $begin, "--end", $end); die if RRDs::error; foreach (@$data) { print "@$_", "\n"; }
The pipe and parsing are unnecessary and avoidable.

  • Comment on Re: perl code not working after moved new host with latest perl version
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1121688]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 10:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found