Skip to main content

Questions tagged [perl]

Perl is a high-level, general-purpose, interpreted, dynamic programming language. It was originally developed by Larry Wall as a general-purpose Unix scripting language to make report processing easier, over a period with support from open source community, it has evolved and matured to be used for graphics programming, system administration, network programming, finance, bioinformatics, and other engineering applications.

130 questions with no upvoted or accepted answers
5 votes
0 answers
135 views

How to create a custom Perl distribution

I would create a custom Perl distribution for perl-5.30.0.tar.gz. I would include in the perl-5.30.0.tar.gz following Perl modules HTML::Entities HTML::Strip Devel::CheckLib Net::DNS Mail::DKIM::...
gr68's user avatar
  • 334
5 votes
0 answers
16k views

Installing custom RPM says "does not update installed package"

I've inherited some servers which have previously always had its software as custom compiled versions (apache, perl, mod_perl etc). I was thinking rather than compile every time, it may be better to ...
Ian's user avatar
  • 388
4 votes
0 answers
47 views

Perl's `kill` is using `$! == Errno::EINTR` unexpectedly

I wrote a network daemon that forks off children to handle TCP connections. On SIGINT the main process triggers a kill for each child in order to clean up and to collect some final statistics. In ...
U. Windl's user avatar
  • 1,493
3 votes
1 answer
108 views

OpenSSH session is killed when from Perl a syswrite call is made with an empty variable in Solaris 11

We have a strange problem in Solaris 11.4. The problem arise when a code as the following is run from Perl my $emptystring = ""; syswrite STDOUT, $emptystring; The execution of a syswrite ...
Ciges's user avatar
  • 131
3 votes
1 answer
566 views

Is it possible to get the apache server-status page without sending a GET request to one of the workers?

I have the server-status page setup and can access it through http://localhost/server-status and commands like apache2ctl status. Is there a way to access the infromation in the server-status page ...
Boyan Atanasov's user avatar
2 votes
0 answers
100 views

Processing large blocklists with GNU Parallel

This is an ongoing project that has undergone a major update to speed up list processing. Here is the homepage for anyone interested! It processes lists defined in lists.json by transforming the list ...
T145's user avatar
  • 213
2 votes
2 answers
140 views

List a file from all directories but skip the ones whose folder contains a specific file

I have a perl script that processes .xml files which reside in multiple folders under a directory. The script takes the absolute file path using the output of ls using parallel. parallel -j 1 /home/...
kalame04's user avatar
2 votes
1 answer
244 views

uniq -c Equivalent for Groups of Lines of Arbitrary Count

I've got a file of ~1-2 million lines that I'm trying to reduce down by counting duplicate groups of lines, preserving order. uniq -c works okay : $ perl -E 'say for (("foo") x 4, ("bar") x 4, "baz"...
robut's user avatar
  • 433
2 votes
2 answers
161 views

Perl script giving different output on bash shell in Linux and /sbin/sh shell on HP unix

Input: tmp# cat test5 1234 012345 0.000 01234 01/02/03 5467 01234 0123 05554567 234 0099 0000 000054 Output on Bash Shell: [tmp]# perl -lpe 's#(^|...
ABHARDWAJ's user avatar
2 votes
1 answer
253 views

replacing values in one with the values in another file

I have a csv file named eche in following format: INCON,--,INITIAL,CONDITIONS,FOR*****,ELEMENTS,AT,TIME ,0.315570E+13 VC76,0.10000000E+00,0.2837726135782E+08,0.6756896308414E+02 1K02,0.10000000E+00,0....
eric's user avatar
  • 21
2 votes
2 answers
707 views

merge multiple files based on first column and save memory issues

I have multiple tab delimited fastq files. I want to match the second line of each read and add up the values next to it if it matches. for example: file1.fq >1 ATGCCGTT file1:1 + HHHHKKKK ...
Umay Kulsum's user avatar
2 votes
1 answer
303 views

Make a rpm package from the cpan compatible tree?

I always make my perl module following the CPAN-complient tree. I would like to use this tree to create a rpm file I could install on a hundreth servers. Is it possible to make a rpm package with ...
MUY Belgium's user avatar
  • 1,264
2 votes
0 answers
141 views

Some errors have occured when I installed lucene, a perl module!

Some errors have occured when I installed lucene, a perl module: [xlwang@localhost Lucene-0.18]$ make test Running Mkbootstrap for Lucene () chmod 644 Lucene.bs PERL_DL_NONLAZY=1 /home/xlwang/local/...
xlwang0903's user avatar
1 vote
0 answers
17 views

Problem enabling perl module stream AlmaLinux 8.10

I have an issue with our AlmaLinux 8.10 systems that they suddenly have issues with perl dependancies. It tuns out that the current active perl stream is 5.26 (dnf module list perl*) but some packages ...
Stefan Lelieveld's user avatar
1 vote
1 answer
54 views

how to catch output from a subprocess?

I am trying to catch the password prompt of sftp, but somehow it is not from STDIN or STDERR. It possibly comes from a sub-process. The following is my test. I tried to redirect the password prompt to ...
oldpride's user avatar
  • 231

15 30 50 per page
1
2 3 4 5
9