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.

137 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
3 answers
1k views

How to pass bash variables (passwords) to IRSSI config file?

I'm using IRSSI and I wonder how can I pass my IRC channel's passwords to the IRSSI config file (~/.irssi/config) without writing them directly in the file. In Mutt I've an awk command that queries a ...
user avatar
3 votes
0 answers
40 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,847
3 votes
0 answers
247 views

How do I model a Perl class with "::" in StarUML?

In StarUML, how can I model a Perl class which uses :: in its name? It doesn't allow :: in the class name, reporting: Element name cannot contain "::" Is there a way to work around this limitation?...
uml's user avatar
  • 31
2 votes
0 answers
197 views

Python and Perl not recognized in cmd even after adding in environment

It was fine yesterday, but it suddenly stopped working today. Both my perl and python were not recognized in cmd. I read as much as i can online for the answers and follow the instruction. I have ...
niknur's user avatar
  • 21
2 votes
0 answers
214 views

How to debug mod_perl compilation errors during start and reload of Apache httpd 2.4?

I'm running Ubuntu 16.04 LTS with httpd 2.4 and mod_perl2 to host a PerlAuthenHandler for some web app. It has been 14.04 LTS before and was upgraded some weeks ago. This works in general but ...
Thorsten Schöning's user avatar
2 votes
0 answers
3k views

Xcode: create new custom templates and code snippets?

I'm trying to tame Xcode for writing things in Perl. Naturally, I'd like to use the "IDE features", not just the text editor. That includes Perl-specific templates, which brings me to the question: ...
badbishop's user avatar
  • 202
2 votes
1 answer
326 views

Clean up filenames using data from a text file

I need to clean up a bunch of folder file names. Possibly even the file titles as well. I was currently using this Perl script to do so but I ran into some problems. If the file name already has ...
Cole Mackenzie's user avatar
2 votes
3 answers
2k views

Apache "70007 timeout errors"

I'm sporadically getting Apache 70007 timeout errors from (I think) Perl CGI scripts. I thought the problem was my scripts were exceeding the Apache's TimeOut value, but I wrote a sleep script that ...
Tim Nelson's user avatar
2 votes
1 answer
735 views

Installing ffmpeg (namely fdk-aac) on cPanel server causes issues with perl threads

Basically, I'm trying to install FFMPEG on a cPanel server. I'm able to get everything installed and working (tested using ffmpeg -v) except for libfdk-aac. I can do the git clone and everything ...
troytc's user avatar
  • 121
2 votes
0 answers
878 views

Install perl module from rpm file

I have a perl issue and obviously I'm not a perl expert. I can not use CPAN. I've installed File::Pid using a rpm, or I tried. I downloaded perl-File-Pid-1.01-3.el5.noarch.rpm (and the perl-Class-...
user avatar
2 votes
2 answers
703 views

Log-off Scripts in Windows 7

I have Public machines that I need to run log-off scripts, which are in Perl. I want the script to run for a Standard user. It seems that the UAC is blocking this from happening. So, I have turned the ...
chrsblck's user avatar
  • 191
1 vote
0 answers
298 views

Clear previous command output (not full screen)

Example This is on the terminal screen: user@host ~ % ls dir1 dir2 dir3 user@host ~ % whoami user user@host ~ % date Wed May 24 16:25:26 -03 2023 user@host ~ % [CURSOR IS HERE] I'm trying to ...
ranemirusG's user avatar
1 vote
1 answer
73 views

Cygwin Perl autodie 'not located'

I have Cygwin installed (with its native Perl support). However, on running a make file supplied by a third-party, I get the following error: Can't locate autodie.pm in @INC (you may need to install ...
Mark Saunders's user avatar
1 vote
1 answer
53 views

perl extended regex pattern with (condition) behaves wrong, what I do false?

I use perl --version perl 5, version 36, subversion 0 (v5.36.0) built for i686-linux-gnu-thread-multi-64int (with 52 registered patches I have used following test lines with these results: perl -we '$...
Anton Wessel's user avatar
1 vote
1 answer
44 views

How do I substitute the entire line in a text file for a portion of text in the line?

For example, I would like to make: >sid|RSV210|ref|NC_001803.1| SM:RSV210 turn into >RSV210 I believe that I could use sed to do this by the following "s/>.*/>RSV210/" but I ...
Estefany Guzman's user avatar
1 vote
1 answer
652 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
1 vote
1 answer
377 views

replace sub-string with last special character, being (3rd part) of comma separated string

I have a string with comma separated values, like: 742108,SOME-STRING_A_-BLAHBLAH_1-4MP0RTTYE,SOME-STRING_A_-BLAHBLAH_1-4MP0-,,, As you can see, the 3rd comma separated value has sometimes special ...
Kostas75's user avatar
  • 111
1 vote
0 answers
1k views

Perl install module fail on WIN10

I was trying to install Spreadsheet::WriteExcel module via CPAN tool for Aactive Perl(5.28.1 version). However , when I executed command "cpan install Spreadsheet::WriteExcel" , it showed some error ...
Henry Lu's user avatar
1 vote
0 answers
472 views

XML::Parser Perl module is not installed

Installation was successful and went well in my droplet (using DigitalOcean) but when I view the page that requires XML::Parser I still got this error message: Internal Server Error XML::Parser Perl ...
user3891309's user avatar
1 vote
1 answer
207 views

Is there a download option for the documentation and tutorials at https://perldoc.perl.org/5.30.0? (Windows user)

I want the documentation and probably the tutorials saved locally on my computer, as usually I only have a 64 kbit/s internet connection. I'm working on Windows 10. At perlfaq1.html#AUTHOR-AND-...
StartingWithPerl's user avatar
1 vote
1 answer
328 views

How can I use :perldo in vim on Windows?

I installed Git Bash and vim was pre-installed. I personally would rather use PCREs instead of vim's regular expressions, so I tried doing :perldo /s/foo/bar. The error was that it could not find msys-...
Alex Hutman's user avatar
1 vote
1 answer
3k views

How to set file association for all users (Windows Server)

We run our jobs through SSMS on Windows Server. Our IT support has built a new server for us, virtual, with Windows Server 2016 Datacenter and SSMS 15.0, and copied over all jobs from the current ...
Wüstenfuchs's user avatar
1 vote
1 answer
196 views

mac os X mojave Perl 5 XML::DOM::XPath test_non_ascii fail

I am trying to install Bio::Root::Version in my MacOsX Mojave, it requires XML::DOM::XPath but when I try to install it with: cpan XML::DOM::XPath it fail with: ------------------- t/test_non_ascii....
cccnrc's user avatar
  • 111
1 vote
0 answers
172 views

apt is broken relying on broken perl version

while trying to upgrade packages on pibian I am running into the following issues, all issues to resolve it seem to involve upgrading perl which is not possible with apt relying on broken perl At ...
wesleyjconnor's user avatar
1 vote
1 answer
2k views

How to use PowerShell Set-Content?

I have a perl script that produces utf8 output. I tried using Set-Content to write a utf8 file as suggested by Powershell overruling Perl binmode?. perl -S testbinmode.pl | Set-Content "binmode.txt" -...
FreonPSandoz's user avatar
1 vote
0 answers
60 views

how to parse a xml which might have zero to N number of nodes using perl

How to handle a xml which might have one or more occurance of node in the file in perl. In the current solution provided below, foreach $FileContainerRec (@{$XmlFile->{FileContainer}}) { $...
Shon Cleneeto's user avatar
1 vote
0 answers
37 views

Why autocompletion did not work?

When I try to autocomplete file name as next: perl t/fiTAB+TAB It work fine. But when I use -d option on command line. It does not: perl -d t/fiTAB+TAB What should I do to make it works?
Eugen Konkov's user avatar
1 vote
1 answer
368 views

Run application from html button using php/perl

I was wondering if there is any way to open an application or file browser such as nautilus from a local html button using php or perl. The webpage is local and I have php and perl installed. I can ...
Guardian167's user avatar
1 vote
0 answers
449 views

Cannot install Perl module in Ubuntu subsystem on Windows 10 pro

Not sure if I have run into a limitation of the Windows Ubuntu subsystem or something else, I've tried to install sudo cpan install HTTP::Server::Simple::CGI and it's throwing an error. Running the ...
Joseph's user avatar
  • 11
1 vote
0 answers
65 views

Linux to Samba Automatical Password Synchonization

Nothing found at all on the Net: I'm looking up for an automatical synchonization of linux to samba (NOT Samba to Linux) passwords. I wrote a cgi web form that changes this password directly in the ...
Birgit Ducarroz's user avatar
1 vote
0 answers
328 views

Set up Bugzilla on IIS 10 with FastCGI

I'm a bit of an IIS noob so apologies if this is vague. I've successfully set up Bugzilla on IIS 10 but it's pretty slow - a few seconds to load each page even on the same local machine. As I ...
user12007's user avatar
  • 181
1 vote
1 answer
114 views

Build hash of lists, as for "all tags for id" with perl dbi

I searched around the dbi docs and googled around but could not find if there was a (dbi) native way of building up a hash of lists. The closest I can think of is fetchall_hashref but that overwrites ...
insaner's user avatar
  • 325
1 vote
1 answer
2k views

Decode QR from image (or how to run Exec in a loop)

I need to decode a folder full of QR code from image files. After A LOT of research, I finally found a libary that works on Windows. Not my ideal choice (Zbar won't install on Strawberry PERL as "......
Chris Brown's user avatar
1 vote
1 answer
2k views

Amavis - How to blacklist using regex, from an external file

I currently have this line in my amavis user config file: # BLACKLIST read_hash(\%blacklist_sender, '/etc/amavis/blacklist'); It works fine with entries such as: .baddomain.net .spam-galore.net ...
CaptSaltyJack's user avatar
1 vote
0 answers
3k views

PowerShell issues with spaces in directory names

PowerShell has issues with spaces in directory names. I am trying to execute a file in the same directory as the PS1 script like so: .\getGravatarsForGource.pl It works fine when the directory ...
JoshCode's user avatar
1 vote
1 answer
166 views

Windows Server 2008 R2: perl ppm doesn't see modules unless I'm the system administrator

I just did a fresh install of ActiveState Perl 5.16.3 on a Windows Server 2008 R2 system, and things seemed to go OK until I went to review the installed modules with Perl Package Manager (PPM). When ...
Alan's user avatar
  • 583
1 vote
1 answer
1k views

Notepad++ does not print to console from perl script

I have following perl script: print "test: "; my $input = <>; print "result: ", $input; I made NppExec command in Notepad++: NPP_SAVE perl "$(CURRENT_DIRECTORY)\$(FILE_NAME)" When I run this ...
user2551229's user avatar
1 vote
0 answers
2k views

XCOFF32 object files are not allowed in 64-bit mode while installing Crypt-SSLeay-0.65_02

I am installing a Perl package Crypt-SSLeay-0.65_02 in an AIX 6.1 system but while performing perl Makefile.PL getting the following error. The test suite can attempt to connect to public servers to ...
Ajit Nair's user avatar
  • 111
1 vote
1 answer
417 views

send sms with perl and google voice

I try to send sms to my mobile phone with perl and google voice. I have installed google::voice module with perl : perl -MCPAN -e "install Google::Voice" perl script: use Google::Voice; my $g = ...
Lkaf Temravet's user avatar
1 vote
1 answer
90 views

Using Perl to communicate with Nut

I'm trying to communicate with my UPS that's managed using NUT. I want to read values from it like line voltage, battery charge, etc. I don't want to send it commands to shut it down. At first I was ...
Piku's user avatar
  • 597
1 vote
1 answer
764 views

Installing libpng on a Mac with Maverick

I want to install libpng library on my Mac, which runs under Mavericks. Here is a simple Perl script to check if it is ok: use GD; my $gd = GD::Image->new(); my $ok = $gd->can('png') ? 'Yes' : '...
Romain Linsolas's user avatar
1 vote
0 answers
764 views

Solaris: ssh -tt with no output

I have access to a machine running SunOS 5.10 (called solaris). I also have access to a RedHat machine (called redhat). ssh -tt seems not to give me output if run from solaris to solaris, but works ...
Ole Tange's user avatar
  • 4,809
1 vote
0 answers
285 views

Permissions tar extraction to nfs share from a Perl script

As part of an installation procedure of a piece of software, I use: curl -s <url-to-targz> | tar -p -x -z -C / inside a Perl script (I use qx($command) or system($command), either will do.All ...
Willem's user avatar
  • 399
1 vote
1 answer
2k views

How to reinstall default Perl on Mac osx?

I accidently deleted the default Perl library on Mac OSX Mountain Lion. I know it was a stupid mistake, but how do I fix it? Whenever I try to use Perl I get dyld: Library not loaded: /System/...
user avatar
1 vote
0 answers
259 views

2-thread Perl program slower if run using a RAMdisk within a Virtualbox?

I run a perl script inside a Virtualbox (both the host and guest OS are Windows 7). The Virtualbox has been given 4 CPUs out of 8 (everything runs on a Intel i7) and 3 GB RAM (out of 8 available). ...
user1828083's user avatar
1 vote
0 answers
612 views

Different epoch times on 2 machines: Where to configure correctly?

I have 2 linux machines that need to run a Perl script and access a database. The date (as reported by the date and date -u commands) is correct (within a couple of minutes), but returning epoch from ...
Stefan's user avatar
  • 311
1 vote
0 answers
347 views

Mac 10.7 - Cannot use make utility after installing xcode

I'm trying to install a perl module that I manually downloaded from CPAN, but am encountering difficulties. $perl Makefile.PL Welcome to JSON (v.2.53) ============================= If you install ...
Jiman's user avatar
  • 11
1 vote
0 answers
31 views

ContentAssist delay on editors for Eclipse?

When using the Java Editor for Eclipse, one can set the ContentAssist delay to 0 seconds (in the Java Editor ContentAssist options). In other language editors, e.g EPIC (Perl Integration), this option ...
me.at.coding's user avatar
  • 1,577
1 vote
1 answer
932 views

BioPerl installation and execution issue

I have installed Active Perl in Windows XP. Through Perl Package Manager I have installed BioPerl repositories. But while trying to execute this BioPerl program: #!/usr/bin/env perl use Bio::Seq; use ...
Shrujan's user avatar
  • 31
1 vote
0 answers
680 views

Get sublime text 2 (sublimecodeintel) to parse mason

So Sublime Text 2 seems to getting a lot of love lately. I am using the Sublime Code intel plugin, https://github.com/Kronuz/SublimeCodeIntel for auto completion. The problem is, it does not recognize ...
yathaid's user avatar
  • 43