Questions tagged as 'perl'

1
answer

RRD miscalculates the averages (AVERAGE)

On a RRD file (Round Rubin Database), with Perl and rrdTools I am exporting to XML ( DUMP), removing all the data from a given date, restoring (RESTORE), resizing back to the initial values (RESIZE) and adding my own (UPDATE). At the...
asked by 28.02.2017 / 08:29
0
answers

Perl Help extract an extra data from the input file

I have a form in the following format: header1 DATE AND TIME and some other info irrelevant OBJECT: 'TYPE1' NUMBER VALUE NAME 1 value1 TOT 2 value2 SUCC 3 value3 FAIL DATE AND TIME and some other info i...
asked by 04.01.2017 / 19:37
1
answer

Perl execute SQLCMD with variables

I need to pass variables to the SQLCMD command. I have the following script: #! /usr/bin/perl use strict; use POSIX qw(strftime); use Config::IniFiles; my $TODAY = strftime "%Y%m%d", localtime; my $cfg = Config::IniFiles->new( -file =>...
asked by 04.10.2016 / 15:11
1
answer

convert php to perl

I need to convert the following PHP code to perl (using CGI) if(isset($_POST['product_detail'])){ $pid=$_POST['pid']; $sql="SELECT * FROM products WHERE product_id='$pid'"; $run_query=mysqli_query($conn,$sql); $...
asked by 17.10.2017 / 00:06