Questions tagged as 'perl'

2
answers

"splice () offset past end of array" in different versions of Perl

Today, in my work, I wrote something like that, in Perl: my @x = qw( 1 2 3 4 5 ); splice(@x, 10); and the error occurred:    splice () offset past end of array at ./x line X. But on my personal laptop, there is no error like that. I...
asked by 30.10.2015 / 16:37
1
answer

Error in escape sequence '\ t'

This script is from the book "VRML for the Internet" ( VRML: Browsing and Building Cyberspace ) by Mark Pesce, 1995. Although I have it, the cd-rom that included it will be in the garbage years ago ... Its author is James Waldrop, and calls...
asked by 08.08.2018 / 23:24
2
answers

Error importing templates marc 21 in koha. "DBIx :: Class :: Storage :: DBI :: _ dbh_execute (): Data truncated for column 'type'"

I'm trying to install koha. When I have it installed, and I enter the browser, I get the following error:    DBIx :: Class :: Storage :: DBI :: _ dbh_execute (): Data truncated for column 'type' at row 1 at /usr/share/koha/lib/Koha/Objects.pm...
asked by 31.10.2016 / 12:59
2
answers

Save all matches of a group in Regex

Consider the following group: ([0-9 ]+)+ I capture matches that contain numbers and spaces, in the following string for example: 123 , 2133132, 31331, 22222222, 23...... would capture "23", the last match, but what I want is to be abl...
asked by 27.05.2017 / 19:19
3
answers

Get current URL with WWW :: Mechanize PERL

Can you help me get the current URL where I am located (after login)? use strict; use WWW::Mechanize; use HTTP::Cookies; my $urlActual; my $url = "xxxxxxxxxxxxxx"; my $palabra; my $username = 'xxxxxxxxxx'; my $password = 'xxxxxxxxxxxxx'; my...
asked by 18.01.2017 / 12:48
1
answer

problems with perl session variables

I have the following code and I do not understand why it does not save the data of the rows after executing the query. #!"C:\xampp\perl\bin\perl.exe" use Digest::MD5 qw(md5 md5_hex md5_base64); use CGI; use CGI::Session(); #Módulo para la se...
asked by 21.10.2017 / 03:42
1
answer

End of script output before headers: multiplicar.cgi

I have been doing a simple example of a calculator using html and perl with the CGI module but I do not understand the error here is the HTML form <form id="formu" action="multiplicar.cgi" method="POST" class="form register"> <h2 cl...
asked by 24.09.2017 / 19:31
2
answers

Build Perl script so that as data is inserted into a log file, it is obtained and processed instantly

Colleagues I'm doing a perl script so that as data is inserted into a log file, I instantly get it and process it but it is giving me an error (the error is in the open) and I do not know what to do. I pass the code: #######!/usr/bin/perl use...
asked by 23.02.2017 / 21:18
1
answer

Problem loading modules in Perl mysql

This time I have a problem with Perl. I'm making a connection from BD to Perl, but at the time of wanting to connect, it handles some errors. The getAll code: #!/usr/bin/perl use CGI; # Por si hay errores, esto funciona use CGI::Carp qw...
asked by 29.11.2018 / 06:29
0
answers

Connect Asterisk with AGI and pass values from AGI to Asterisk

Hello, good morning, I'm working with Asterisk v 1.4 and AGI, in the AGI file I'm working with Perl where I have the following code: #!/usr/bin/perl use DBI; use POSIX; use Asterisk::AGI; $valor = 8; %MYSQL = ( hostname => "localhost", us...
asked by 10.10.2018 / 17:42