Questions tagged as 'perl'

1
answer

error in the comparison of binaries in C

I have a Perl program that connects to a socket, receives binaries on this socket, reads the received binaries, compares with other binaries in a buffer so I know if there are any binaries in the buffer received in the socket. See: perlProgr...
asked by 23.08.2014 / 22:36
0
answers

How to properly print accented characters in a file?

I'm doing a program that needs to get the words into a file that has a certain formatting. Everything is working correctly except that in the output file the accented characters are wrong. I even inserted two lines of debug to start the word fou...
asked by 24.06.2018 / 21:48
0
answers

Error reference indefinite - C ++

Hello! I'm trying to compile my program in C ++ (it calls a function written in Perl) and it is returning a long list of "undefined reference" errors: testeperl2principal.o: na função 'S_croak_memory_wrap': testeperl2principal.cpp:(.text+0...
asked by 19.11.2017 / 15:13
0
answers

Dúvia match perl

I need a perl help for a regular expression match ... But it's the reverse of what usually happens .... I need to do a match on the next one. I have the number "(0003 [6-9]) (.00041).: : 30/30 ", the delimiter is the colon, however, I need...
asked by 12.05.2016 / 01:17
0
answers

End of script output before headers - Perl

Why so: print "Content-type: text/html\n\n"; print "<H1>Hello World</H1>\n"; It works! And so: my $tpl = HTML::Template->new(filename => 'index.html'); print "Content-Type: text/html\n\n" , $tpl->output I have t...
asked by 24.12.2015 / 03:10
0
answers

Perl SOAP :: Lite, problems mounting complex request

I'm trying to consume an API using Perl + SOAP :: Lite, for simple requests I can consume the API and get the result, however I need to make a more complex request to access a given API service and I'm having problems. Below is the code I'm w...
asked by 17.09.2018 / 14:08
0
answers

Installing modules on windows

Good evening, I can not install the curl module. I'm trying "perl Makefile.pl" but it has this error: Sorry, no automated install is available on Windows, please see the README.Win32 file on instructions for a manual install. Does anyone...
asked by 27.05.2018 / 22:13
1
answer

Can not call method "getFirstName" on an undefined value at ConsManagement.pl

Good afternoon. I recently started learning Perl. I was practicing with a simple object-oriented program. This is my class package Consultant; sub new { my $class = shift; my $self = { _firstName => shift, _last...
asked by 14.11.2017 / 16:30
1
answer

Perl - Pass JSON data to variable and compare to IF

Good morning, I have a request that I make in an API using GET (LWP :: UserAgent), the data is returned in a JSON, the JSON are returned up to two results at most as follows: {"status":1,"time":1507891855,"response":{"prices":{"nome1\u2122"...
asked by 13.10.2017 / 12:49
1
answer

Hours in timestamp

Talk to the people, everything beauty? Is it possible for me to know how much is two hours in the timestamp conversion? In this line I convert the current time into timestamp. my $ hours_2 = str2time (localtime ()); But I need to kno...
asked by 09.04.2017 / 04:08