File::stat fails with modified $SIG{__DIE__} between different version of Perl
Perl | Reddit
by /u/Longjumping_Army_525
19h ago
Hi! Asking for a wisdom here... We have a module that modifies signal handler $SIG{__DIE__} to log information and to die afterwards. Hundreds of scripts relied on this module which worked fine in perl 5.10.1. Recently we had the opportunity to install several Perl versions but unfortunately a large number of scripts that used to work with Perl 5.10.1 now behave differently: Failed in 5.14.4: $ /home/dev/perl-5.14.4/bin/perl -wc test.pl RECEIVED SIGNAL - S_IFFIFO is not a valid Fcntl macro at /home/dev/perl-5.14.4/lib/5.14.4/File/stat.pm line 41 Worked without changes in 5.26.3: $ /home/d ..read more
Visit website
Diat::zilla is awesome
Perl | Reddit
by /u/ReplacementSlight413
3d ago
I understand that many disagree with this statement, but it really makes it easier to build distributions for people who not monks. Wish the documentation was more detailed submitted by /u/ReplacementSlight413 [visit reddit] [comments ..read more
Visit website
Explicit vs Implicit Hooks
Perl | Reddit
by /u/domm_plix
3d ago
submitted by /u/domm_plix [visit reddit] [comments ..read more
Visit website
Announcing The London Perl & Raku Workshop 2024 (LPW)
Perl | Reddit
by /u/leejo
3d ago
submitted by /u/leejo [visit reddit] [comments ..read more
Visit website
"Refreshing " %ENV variable
Perl | Reddit
by /u/sarcasmwala
3d ago
My environment is perl/5.18.2 on CentOs 7 I'm trying to use a SWIG generated module in perl, which has a c plus plus backend. The backend.cpp sets an environment variable, $MY_ENV_VAR =1 But when I try to access this in perl, using $ENV{MY_ENV_VAR} this is undef. However doing something like print `echo \$MY_ENV_VAR` works So the variable is set in the process, but it's not reflected automatically since nothing updates the $ENV data structure. I'm assuming it may work using some getEnv like mechanism, but is there a way to reset/ refresh the $ENV that it rebuilds itself from the current envir ..read more
Visit website
How do I get cpanm to use a directory other than ~/perl5?
Perl | Reddit
by /u/s-ro_mojosa
4d ago
By default cpanm drops Perl modules into ~/perl5. How do I tell cpanm to use a different location, such as ~/.local/share/perl5 instead? submitted by /u/s-ro_mojosa [visit reddit] [comments ..read more
Visit website
Orion SSG v5.0.0 released to GitHub
Perl | Reddit
by /u/joesuf4
4d ago
Fast Perl SSG: now with automatic Language Translation via OCI and translate.pl. Check it out at https://github.com/SunStarSys/orion submitted by /u/joesuf4 [visit reddit] [comments ..read more
Visit website
Why I Like Perl's OO
Perl | Reddit
by /u/pmz
1w ago
submitted by /u/pmz [visit reddit] [comments ..read more
Visit website
Net::SSH::Expect - jump server then to remote device?
Perl | Reddit
by /u/jtzako
1w ago
Im working on a script to test using a jump server to reach remote devices. I'm able to connect to the jump server using Net::SSH::Expect, however, I'm not sure how to then ssh to a remote device (network element). Is there a way to create that ssh to the remote device inside the jump server's connection? submitted by /u/jtzako [visit reddit] [comments ..read more
Visit website
How to manipulate files on different servers
Perl | Reddit
by /u/QueenScorp
1w ago
First things first, I am a data engineer but have little experience in Perl. I've been able to make some easy updates to scripts in the past but this one is a bit tougher. I have been asked to update a Perl cgi web app that someone wrote ages ago that is used to view and manipulate text files. Currently it is hosted on server (X) and manipulates the files on that same server. However, we have to have backups/mirrors of the data on a dev server and another prod sever (Y). I.e., if I push the button to move the file to a different folder, it should do that on all three servers instead of just X ..read more
Visit website

Follow Perl | Reddit on FeedSpot

Continue with Google
Continue with Apple
OR