perl tag

15 questions


2 answers
114 views
0
Do you have any idioms that do not produce 'Use of uninitiated value concatenation' in Perl?

When generating strings in Perl, I often issue Use of initialized value concatenation, so I would like to resolve it somehow.This appears when you combine variables that are not initialized (or contai...

2 years ago

1 answers
90 views
0
I want to get the number of lines in the Excel file in perl.

Currently, I am reading and processing Excel-2007 file (.xlsx) in Perl's CGI program.in CPAN Spreadsheet::XLSX->new (file path);You are using the , but if you have more than 10000 lines of files, y...

2 years ago

1 answers
120 views
0
Cookie retrieval error in perl

a. Set cookies in cgi and Trying to read cookies from b.cgi in the same hierarchyThen an error occurs.b. by specifying the $main->param(READID=>$readid); in cgiThere seems to be an error, but I ...

2 years ago

1 answers
132 views
0
Is it possible to dynamically localize multiple global variables without using eval?

If global variables $foo, $bar, $buz exist and try to localize them only within a specific scope, I think:use strict;use warnings;use v5.10;our($foo,$bar,$buz) = qw(foo barbuz);UPPER_CASE_WORLD: { # C...

2 years ago

1 answers
122 views
0
When you try to run a Perl script, the `Util.bundle` cannot be opened because it cannot validate the manufacturer.`

Environment Perl 5.20.1cpanm(App::cpanminus) 1.7044 on perl 5.020001 build for darwin-2 levelmacOS Catalina 10.15.6 As the title suggests, when I try to move the Perl script, Util.bundle cannot be ope...

2 years ago

1 answers
110 views
0
I want to connect to postgresql from perl file and get results

I'm using the perl file pg (is it like including?) and doing pg::connectdb, but I'd like to check the return value of SQL.# begin.$conn=Pg::connectdb(host=$hostport=$portdbname=$dbname user=$user);$re...

2 years ago

1 answers
91 views
0
What does while () mean in perl?

I am a beginner at perl.I have no idea what while(<STDIN>) is in the perl file.What is it?

2 years ago

1 answers
74 views
0
To Handle ImageMagic Exceptions in Try::Tiny

I'm creating something like a file server.I am generating thumbnails of PDF files using ImageMagic, but there are PDF files that fail with ImageMagic.For that file, I just want to avoid using thumbnai...

2 years ago

1 answers
112 views
0
Understanding Perl DBI bind_column

Run a select statement using Perl's DBI and read each line.$th->bind_columns(\$name, \$old, \$language);while($th->fetch()) { ...}I'm running the code in the line where $old on the DB does not c...

2 years ago

1 answers
91 views
0
How to Enable Perl Scripts to Work in an Nginx+Apache Environment

Thank you for your help.Attempting to operate Apache with Nginx as the reverse proxy.For the time being, most of the configuration tasks have been completed, and HTML and PHP can now be displayed norm...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.