Questions tagged [perl]
Perl is a powerful, high level programming language. Questions about Perl should be limited to the Perl development environment, running Perl, or using Perl to automate tasks on your computer.
509 questions
1
vote
0
answers
42
views
Filling out fields with pdftk
I took over a job, where we are creating prefilled pdf forms that we mail to our customers.
There is a template.pdf, we create a xml fdf file from user data and use pdftk to mangle them both and ...
2
votes
1
answer
121
views
cpanm on debian 12 fails to install modules
We've seen cases where installing a perl module via cpanm fails silently to actually install the module. This is occurring on Debian 12.
For example:
cpanm --installdeps --notest Unicode::Lite
...
0
votes
0
answers
60
views
Installing Perl DBD-Mysql on Windows 11
I can't get DBD-mysql to install on my Windows 11 machine.
Activestate Perl 5.40.2
DBD-mysql version 5.013 (Auto)
Mysql server 8.4
Mysql server is running.
Database 'test' has been created.
...
0
votes
1
answer
64
views
cpan install Log::Log4perl fails on Windows 11 with Strawberry Perl 5.32.1
cpan Log::Log4perl fails with the following:
>cpan Log::Log4perl
Loading internal logger. Log::Log4perl recommended for better logging
CPAN: CPAN::SQLite loaded ok (v0.219)
Database was ...
0
votes
1
answer
79
views
lazyvim does not add perl text filters to runtime path
in my ~/.config/nvim/init.lua I added two variants:
-- vim.opt.rtp:append(vim.fn.stdpath("config") .. "filter")
vim.opt.rtp:append("/Users/mstep/.config/nvim/filter")
...
4
votes
3
answers
568
views
How to sort a file which contains a list of file names in paragraphs and the size of the files as the header line?
Require file to be sorted per numerical header line for each paragraph.
e.g below
765482610 bytes each:
test/folder/for_today/monthly/file1.txt
test/folder/for_today/monthly/file2.txt
5553423 bytes ...
0
votes
4
answers
157
views
How to print all lines matching the pattern 1 and print only line with pattern 2 which is the line before line containing pattern 1?
Say I have two patterns (pattern 1 and pattern 2) Want to print all lines matching the pattern 1 and print only line with pattern 2 which is the line before line containing pattern 1:
eg: I have a ...
10
votes
3
answers
1k
views
Why does a Perl CGI program not write to files on Fedora 40 with Apache?
Last week, I upgraded my Linux file server from Fedora 39 to Fedora 40, and several CGI applications written in Perl stopped working. I first noticed it when Foswiki could not show any pages, because ...
0
votes
0
answers
396
views
Locale setting warnings when running Perl commands with Strawberry Perl
I am using Strawberry Perl to run Perl on Windows 10. The problem is: whenever I type a Perl command, it always shows warning messages like below:
command:
perl -v
result:
perl: warning: Setting ...
0
votes
1
answer
980
views
How to get stock quotes in KMyMoney, GNUCash, or other programs using old/broken perl Finance::Quote
TLDR: I am unable to get online stock quotes from within GnuCash and KMyMoney. It seems that something is wrong with the perl Finance::Quote module. What is the easiest way to fix this?
Background
...
3
votes
3
answers
1k
views
Bash [[ test =~ regex ]] vs perl command result
Is the bash operator =~ equivalent to a perl invocation?
filename="test-33.csv"
regex="([^.]+)(-\d{1,5})(\.csv)"
With bash test:
if [[ "$filename" =~ $regex ]]; then ...
2
votes
1
answer
1k
views
Install Perl on Windows for LaTeX Packages Without Dependency Issues
I'm currently facing challenges with installing Perl on my Windows system, which I need for handling specific LaTeX related packages. My journey so far has led me through a series of issues, and I'm ...
0
votes
1
answer
147
views
database connection error with perl app (rt 5 - request tracker) connecting to Postgres database
On a CentOS 9 system I installed postgres via dnf
# dnf info postgresql
Last metadata expiration check: 3:26:33 ago on Tue 21 Nov 2023 12:13:48 PM PST.
Installed Packages
Name : postgresql
...
-1
votes
1
answer
107
views
AWK replace some special new line to one line
i have some log like this:
2023-11-15T08:59:28.000000+00:00 database-1 # Time: 231115 8:59:28
# User@Host: rdsadmin[rdsadmin] @ localhost []
# Thread_id: 3 Schema: QC_hit: No
# Query_time: 0....
1
vote
1
answer
602
views
Combine two regex formulas into one (using notepad++)
Si cum îi semănau ! Fraţi buni, puindu-si, ca si el, tot sufletul
în ceea ce făceau, muncind din greu, luptind din greu, jert-
findu-se, fără nici un gînd de răsplată.
Simțind în tot ceasul,
...