2022 Developer Survey is open! Take survey.

Questions tagged [perl]

Perl is a high-level programming language that comes installed by default in Ubuntu. It is well known for it's use for text manipulation, CGI scripts and it's huge community. You can find any modul and many tutorials on http://www.cpan.org/

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

unable to locate librrd-simple-perl

I am unable to install librrd-simple-perl. System says it is "unable to locate package...". I am trying to install it on a fresh Ubuntu Server LTS 22.04. Am I missing a repository?
user avatar
  • 31
0 votes
0 answers
14 views

How to find mentions of a string in all directory files? [duplicate]

I will describe my task: I have a lot of directories with a lot of perl-files. I need to find all files that mention the string "license.key". What ways can this be implemented?
user avatar
0 votes
0 answers
112 views

Problem installing Perl module Sys::Info::Driver::Linux

I am running Linux on Windows (Ubuntu) to install a bioinformatics software (MEME Suite - Installation Guide). Please bear in mind I do not have much experience using Linux. I am following the ...
user avatar
0 votes
0 answers
44 views

Perl modules installation

I installed webmin the other day on a test platform. Ubuntu 18.04 I needed to test 2FA with Google Authenticator. Webmin wouldn't install the necessary perl modules automatically. I first installed ...
user avatar
0 votes
0 answers
407 views

koha installation problem?

i am new on ubuntu os and on top of that i am trying to install koha on ubuntu 21.10. this is what i get at some point: Setting up apache2 (2.4.48-3.1ubuntu3) ... info: Executing deferred 'a2enconf ...
user avatar
2 votes
1 answer
856 views

Trying to update from 16.04LTS to 18.04LTS but unmet perl dependencies or conflicts when updating packages

I've done: sudo apt update But when I do sudo apt upgrade, I get: The following packages have unmet dependencies: perl-modules-5.22 : Conflicts: perl-modules Conflicts: perl-...
user avatar
  • 21
0 votes
0 answers
42 views

Attempting to verify hash sums for installed binaries openssl, wget, and perl

I am trying to verify if the installed binaries on my system for openssl, perl, and wget are valid. Per a Lynis audit these binaries are just "Found" instead of "Found known binary.&...
user avatar
1 vote
0 answers
111 views

How to use cpan command to install downloaded perl module (.tar.gz file)

I want to install Sys::RunAlone. I'm not able to install cpanm due to other independent reason, with which I was able to give the downloaded Sys::RunAlone compressed file directly and it installed. In ...
user avatar
  • 333
0 votes
1 answer
51 views

Can Raku and Perl 5 Run on Same Ubuntu With Switching

I am using a desktop with Ubuntu 20.04. I have Perl 5 installed. I will be installing Raku. Before I install Raku, I want to make sure that I can switch between them, when running a Perl script. Is ...
user avatar
  • 1
3 votes
2 answers
566 views

Shutter is complaining about that can't locate Carp/Always.pm in @INC

I made a full upgrade from Ubuntu v18 to Ubuntu v20. Shutter was not upgraded - it was removed. I was trying to install from CRAN or from source. Both complain about old Perl libraries. When I am ...
user avatar
1 vote
1 answer
146 views

reinstall spamassassin (broken perl)

spamassassin was broken on my Ubuntu 20.10 and I can't reinstall it. I have done dpkg --purge spamassassin sa-compile spamc deluser --remove-all-files debian-spamd apt update apt upgrade apt install ...
user avatar
0 votes
0 answers
56 views

how we can append the data in perl using bash?

i have multiple perl scripts ,currently its working from the shell, but my requirement is like automate this scripts from the bash. perl smtp-check.pl < unmatched-00250 > good_smtp_251 2> ...
user avatar
0 votes
1 answer
79 views

variable substitution

I found this on shell script, in variable substitution option using cap symbols can anyone explain the logic of this nf=${f:gs^__^/^} for f in notes__* books__*; do nf=${f:gs^__^/^} perl -p -...
user avatar
0 votes
0 answers
13 views

Open pl command [duplicate]

This is probably pretty basic but I have not been able to solve it. I am trying to execute IDrive for Linux, and following the instructions I need to run account_setting.pl. I open the terminal ...
user avatar
1 vote
2 answers
152 views

Problem with Perl installation on Ubuntu 20.04

I am an inexperienced user. I have two different bioinformatics applications using different Perl libraries. I get the following error when trying to execute one of them: /usr/bin/perl: symbol lookup ...
user avatar
  • 13
-1 votes
1 answer
35 views

How to handle format in perl?

I want to write the number in two decimal using Perl script. Here is my code. #!/usr/bin/perl -w print "Preparing input files\n"; $incr=0.10; &prepare_input(); exit(0); sub ...
user avatar
0 votes
1 answer
45 views

for loop issues, ls not working right

I have a code that has to be run through Ubuntu. When my code reaches filelist, instead of giving all of the subfolders within the filelist, it gives the same list as from the subjectlist... why is ...
user avatar
0 votes
1 answer
302 views

nginx hangs if "reload" 2 times

If you execute "service nginx reload" 2 times (this also works with any commands that execute "reload", for example systemctl reload nginx.service) - nginx hangs and stops ...
user avatar
1 vote
2 answers
59 views

Append multiple digits to the end of eatch lines

i need to cat temperature values in /sys/class/hwmon/hwmon[0-9]/temp[0-9]_input and append them to the corresponds names in given file. help !
user avatar
  • 187
0 votes
1 answer
225 views

WSL Ubuntu why does cpanm install Perl5 modules in the wrong spot?

I have Ubuntu installed under Windows Subsystem for Linux 2 (WSL2). There are Perl5 modules installed under /usr/share/perl/5.30.0 and I can access these with a plain use statement. But when I install ...
user avatar
  • 263
0 votes
2 answers
166 views

I can launch a Perl script with cron, but can I make it open up a window?

I have an Perl script that runs all night, through a terminal window (Win10 putty.exe) on my Ubuntu server. As with many home networks, I occasionally lose my internet connection, which kills my ...
user avatar
2 votes
2 answers
947 views

replace text with part of text using regex with bash perl

For example I have this output: string1 anynameveryveryverylong string2 string1 othernameveryveryverylong string2 I want truncate the name to the first ten characters: string1 anynamever string2 ...
user avatar
0 votes
1 answer
125 views

Can I stop SSH Terminal window, into Ubuntu command line, from closing on error in Perl script?

My apologies if I am in the wrong Stack section, if I am please just let me know and I will delete this post. I am running Perl scripts on my Ubuntu server, 18.04. I run them from my Mac and PC. One ...
user avatar
3 votes
3 answers
197 views

bash perl \z doesn't work

I have this text file or sdout: text1 text2 text1 text2 text1 text2 I have this code: perl -pe "s/text2\n\z/text3/s" text.txt #Note the modifier "/s" I with \z expect him to ...
user avatar
-2 votes
2 answers
523 views

Replace only last occurrence of a string using perl command

I have a stdout or a file does not matter: mela pera banana caffè mela pera banana caffè mela pera banana caffè I want remove only last occurrence of "mela" using perl: mela pera banana ...
user avatar
0 votes
1 answer
523 views

Install perl 5.10.1 on Ubuntu 18.04

I am trying to install an old version of perl (5.10.1) since it is a dependency for software I want to use (and newer versions do not work). I downloaded the source from https://www.cpan.org/src/...
user avatar
0 votes
1 answer
1k views

Ubuntu 20.04,1 failing to install perl modules

for example File::Slurp Reading '/root/.cpan/Metadata' Database was generated on Sun, 06 Dec 2020 19:29:03 GMT Running install for module 'File::Slurp' Checksum for /root/.cpan/sources/authors/id/C/...
user avatar
0 votes
0 answers
128 views

Make issue in Ubuntu 20.04

I have a "make file" to install some files, which will highlight syntax in gvim. It was downloaded from Github, for reference. When I attempt to install it was showing some error: "let ...
user avatar
0 votes
3 answers
86 views

Re: How can I escape meta-characters when I interpolate a variable in Perl's match operator?

The link How can I escape meta-characters when I interpolate a variable in Perl's match operator? didn't help me. I have tried with Python: import os line='ID_SN=02 MS=DC:A6:32:7E:74:08 S=* ...
user avatar
0 votes
1 answer
415 views

perl command: Append a line of text only at the first occurrence

I have this input file: text1 match text2 match text3 I have the command that inserts a line before the match: perl -lpe 'print "prepend_me" if /^match$/ && ++$i == 1' text.txt And ...
user avatar
1 vote
2 answers
156 views

perl command: Prepend a line of text only at the first occurrence

I have this input file: text1 match text2 match text3 And I have this command: perl -lpe 'print "prepend_me" if /^match$/' text.txt And its output is: text1 prepend_me match text2 ...
user avatar
0 votes
1 answer
605 views

Perl Module Location Issue

I'm on Ubuntu 20.04 LTS. I ran the following commands to try to connect to my PostgreSQL database: sudo -i -u postgres postgres@{username}:~$ psql This raised the following error: Can't locate ...
user avatar
0 votes
1 answer
69 views

bash perl "and" operator

with a output: apple text1 peach text2 banana text3 melon text4 For delete rows that begin with "apple" or "banana" i put: perl -pe 's/^apple.*\n|^banana.*\n//g' And output is ...
user avatar
4 votes
2 answers
521 views

bash --> perl command: print only the replaced text

I have the file "test.txt" that contains: Val1 = '59' Val2 = '76' Val3 = '42' Val4 = '53' I with this command: perl -pe "s/^Val2 = '(.*)'/\1/" test.txt I Want: 76 But I obtain: ...
user avatar
0 votes
0 answers
103 views

Where can I find the system log files on my ubuntu 20.04.01 LTS system

My system is a ubuntu 20.04.1 LTS system I am working with some perl scripts that use Sys::Syslog to write to the system log. My questions are : Where are the log files that contain these written ...
user avatar
1 vote
1 answer
3k views

perl install DBD::mysql failed on ubuntu 20.04

I have installed the latest mysql database on my ubuntu 20.04 laptop. Next I tried to install all the perl modules I need to write Perl scripts to access my mysql database. I started a "sudo -i&...
user avatar
3 votes
0 answers
925 views

How to install slurm-seff in Ubuntu

I am trying to install Slurm-seff Perl package into Ubuntu 19.10. It has .rpm package to install https://pkgs.org/download/slurm-seff ; but I am unable to install alien to install the .rpm package. ...
user avatar
  • 191
0 votes
2 answers
297 views

What Ubuntu 20.04 package gives the Perl module Locale::Language?

What Ubuntu 20.04 package gives the Perl module Locale::Language? I've looked on https://packages.ubuntu.com/ but I can't find anything. Web search isn't turning up anything. Not sure I'm searching ...
user avatar
3 votes
2 answers
558 views

Deleted /usr/share/perl/5.26 because I had /usr/share/perl/5.26.1 folder

Being new to perl and its versions, I thought it worked like R but OBVIOUSLY not. I had folder /usr/share/perl/5.26.1 folder and /usr/share/perl/5.26 folder both with same files so I deleted /usr/...
user avatar
2 votes
1 answer
445 views

Rmarkdown can't install Tinytex

I can't see to get this to work. I installed miktex using instructions at https://miktex.org/howto/install-miktex-unx. I installed with install.packages('tinytex') and then when I do tinytex::...
user avatar
0 votes
1 answer
75 views

is there something like brace expansion when using perl rename?

I have 100's of files that I want to remove the beginning numbers from. The files are named similar to below: 048banana.txt 049pear.txt 050watermelon.txt 051tomato.txt 062pepper.txt ...
user avatar
1 vote
1 answer
895 views

Environment Modules can't find installed modules

I'm trying to install and load several Perl modules in Google Colab (a Ubuntu environment). I'm installing them with CPAN, then loading them with Environment Modules. I absolutely need to use ...
user avatar
  • 113
0 votes
0 answers
386 views

Perl Libraries configuration, conflicts

I'm having troubles with Perl in my server machine I'm not an admin, but I assume I have created my environment, it was working just fine until I installed Conda. I install Perl using brew so it can ...
user avatar
  • 101
2 votes
1 answer
499 views

libsnmp-perl 20.04 can not install

I can not install package libsnmp-perl. I hope that the text I pasted is helpful. Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal Using sudo apt-...
user avatar
  • 21
7 votes
0 answers
170 views

Nautilus shortcut for "Open in Terminal" and gvfs

I am trying to assign a shortcut to "Open in Terminal" in Nautilus. I have implemented the solution here with nautilus-scripts and the Perl file. While this solution works well for local ...
user avatar
  • 146
0 votes
1 answer
1k views

Odd number of elements in hash assignment at /usr/share/pkg-config-dpkghook when adding an architecture for cross-compliation?

Someone suggested that I run sudo dpkg --add-architecture armhf to add cross-compilation to my x86_64 box running Ubuntu 18.04 LTS, but it doesn't appear to work: $ sudo dpkg --add-architecture armhf ...
user avatar
  • 706
0 votes
1 answer
112 views

How to add . in @INC in perl in ubuntu desktop 18.0.4

As the title says i'm looking for a way to do so, i'm using ubuntu/linux for the first time and i had already tried environment variables etc but none of them worked for me. So it would be great if ...
user avatar
  • 3
0 votes
0 answers
352 views

Software Center got removed by uninstalling Perl

I tried to uninstall Perl from my Ubuntu 18.04.3 LTS by the command- sudo apt-get remove --auto-remove perl Due to this command Software Center app is removed and won't reinstall by install software-...
user avatar
2 votes
2 answers
4k views

loadable library and perl binaries are mismatched

I don't use perl, but I do use Slic3r, which apparently uses perl. I don't know what has done it, but some update somewhere has broken perl and I have no idea how to fix it. I've searched a lot but ...
user avatar
8 votes
3 answers
927 views

How can I change ^L code in many files in Ubuntu?

I have a lot of XML files, over 50000 of them. In some XML files, some files are written like this <filename>abc.JPEG<^Lilename> ^L is just one character, but I can't find what ^L means ...
user avatar
  • 95

1
2 3 4 5
7