Skip to main content

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.

0 votes
0 answers
161 views

Perl, modifiers /m /s/ /ms

I have seen in Larry's Wall book programming Perl 3rd edition what do the modifiers /s /m /ms in some example with \n . Now I cannot find the exact page. Specifically the example showed that only the ...
user2925716's user avatar
0 votes
2 answers
81 views

opendmarc: hostnamefqdn() shows only short name / helo command rejected fqdn

I have problem with opendmarc. This software uses perl function to send report mails. So in the source code I see that /etc/opendmarc_reports uses also function hostnamefqdn() to pass it to helo ...
Macsurf's user avatar
0 votes
1 answer
546 views

500 Internal Server Error when run perl file and no access to command line

I'm a newbie with Perl. I've created a simple file test.pl with the code: #!/usr/bin/perl print 'test'; uploaded it to my shared hosting with Linux where PERL is enabled and changed my PERL file ...
sprsr's user avatar
  • 269
0 votes
1 answer
277 views

Why does this regexp — which attempts to match characters between “@” characters — fail?

I need to extract the second field of selected lines in a GEDCOM file. These lines are all of the following format: % grep @ /tmp/XYZ | tail -5 0 @X701@ OBJE 0 @X702@ OBJE 0 @X750@ OBJE 0 @X765@ OBJE ...
WGroleau's user avatar
  • 824
-1 votes
1 answer
157 views

Need to autoincrement directory names but by avoiding some letters in the name

My script creates a set of directories aa, ab, ac, and so on This script autoincrement directory names but I want to avoid the letters: I, O, P, Q, R, W while creating directories. The script which I ...
Purple's user avatar
  • 3
1 vote
1 answer
765 views

Unable to install DBD::mysql on Ubuntu 20.04

I am unable to get DBD::mysql installed on Ubuntu 20.04. I get the following error: Warning: No success on command[/usr/bin/perl Makefile.PL LIB=/home/htm/Lib] DVEEDEN/DBD-mysql-4.050.tar.gz /usr/bin/...
HTM's user avatar
  • 21
0 votes
1 answer
201 views

Sending args from bash to perl

I eally need help I would like to send args from bash file to perl file. I dont know why it is not working for me. My code foe testing is bellow *******bash code ********* #!/usr/bin/env bash chmod +...
user8417133's user avatar
0 votes
1 answer
52 views

a very simple Perl script needed

I have the following text file G.txt. I need a perl command perl -e ... that would extract all negative entries ending with Kč, so that first line it will be -107,60 and last will be -63,00 I have ...
user113823's user avatar
0 votes
1 answer
337 views

Combining two txt files containing name and last name on command line

I have two text files. First file have 20 Names listed in seperate lines and 2nd file have 20 surnames listed in seperated lines. How I can combine those files. So final text file have both first name ...
Roxion's user avatar
  • 354
1 vote
1 answer
936 views

How to make fork() fail?

For a script I'm writing, it's important to properly handle a failed fork() (see https://rachelbythebay.com/w/2014/08/19/fork/ for the Why). But how, without bringing my system down with processes, ...
AlasiaSpritzig's user avatar
0 votes
0 answers
174 views

Reading email headers in Perl

I have an email account ([email protected]) and an alias ([email protected]) pointing to the account. An email sent to [email protected] is delivered to [email protected] as expected. Email headers in MS ...
Niso's user avatar
  • 21
0 votes
1 answer
81 views

Perl/Bash Solution to Test if a Folder Has Changed, Then Create Copy of It

I'd like to put together a script for a very rudimentary backup system that checks a directory recursively for any changes since the date another directory (the backup) was created and, if it finds ...
Timothy R. Butler's user avatar
3 votes
0 answers
43 views

How to rename a perlbrew installed version

I installed Perl 5.32 with the name perl-5.32.0 $ perlbrew list * perl-5.32.0 The installation was updated with perlbrew upgrade-perl and I now have 5.32.1 $ perl --version This is perl 5, version ...
Matteo's user avatar
  • 7,897
2 votes
1 answer
111 views

Shell special chars blowing up regexp(s) in all: sed, (g)awk, and perl [closed]

I would like to change the PS1 in my ~/.bashrc programmatically with any of the the most popular regexp tools { sed, awk or perl }. However, I have problems with special characters. Note that in the ...
ubixy's user avatar
  • 21
0 votes
1 answer
156 views

Transpose vertically with a catch

I've been working through some issues preparing data for logstash ingestion. I have a decent chunk of the process worked out but I'm wondering if there's a better way to do this. Basically I need to ...
Steve Zemlicka's user avatar

15 30 50 per page
1 2
3
4 5
34