|
If you're new here please read PerlMonks FAQ and Create a new user.
|
Quests
|
Monk Quips Quest
Starts at: May 01, 2023 at 08:00
Ends at: Dec 31, 2023 at 18:59
Current Status: Active
|
7 replies
|
by erzuuli
|
Esteemed Monk kcott has recently proposed an excellent idea.
heretoforthwithstanding, we invite all monks to submit ideas for new monk quips!
Your quip suggestion should include the following details:
- Intended quip location: either XP Nodelet, Chatterbox, or Monkbar (that's the page header).
- Text of quip.
- Optional: background & foreground colours. If you include these, be sure they are nicely contrasting.
.
|
poll ideas quest 2023
Starts at: Jan 01, 2023 at 00:00
Ends at: Dec 31, 2023 at 23:59
Current Status: Active
|
2 replies
|
by pollsters
|
|
|
|
|
Perl News
|
A Roguelike in Perl Tutorials by Chris Prather
on Aug 08, 2023 at 05:19
|
1 reply
|
by ait
|
|
|
berrybrew version 1.40 released
on Aug 02, 2023 at 13:38
|
1 reply
|
by stevieb
|
I have released version 1.40 of berrybrew. It comes with some extensive changes over this, and the previous 1.39 version. (See the changes list).
User facing changes include:
- Ability to install and use the new 5.36 and 5.38 releases of Strawberry Perl
- berrybrew archives hidden command. It displays the list of portable Strawberry Perl zip files previously downloaded
- berrybrew download hidden command. Download, but do not extract the zip archive of a perl version
- berrybrew snapshot command. Export an installed perl version to a zip archive, and import a previous zip snapshot to a new installed instance
berrybrew snapshot usage:
- bb snapshot export <perl version> [snapshot name]
- bb snapshot import <snapshot name> [new instance name]
As far as changes on the developer side, the changes are significant. Here's a high-level list:
- Broke out like functionality in the main berrybrew.cs source file, and spread it across several new classes, each in their own source file
- Removed the deprecated berrybrew upgrade command. Upgrades shall be done via the installer
- Created a very extensive MANIFEST checking system for the installer. This ensures that all files that need to be installed are, those same files are removed upon uninstall, and no rogue files when building the installer are accidentally leaked in
- Added a significant amount of documentation for the development, build, test and release lifecycle of the project. If I get hit by a bus, I've created a fantastic roadmap for someone to carry on the project quite readily (bb dev docs)
- A few minor bug fixes, and one major one
-stevieb
|
|
|
Supplications
|
anti csrf token & Penetration testing
3 direct replies — Read more / Contribute
|
by djlerman
on Aug 18, 2023 at 12:33
|
|
|
Hello Holders of Wisdom!!!
My company just had a major penetration test done.
The solutions for one of the issue that came up was to implement an "anti csrf token".
Our system was built in embperl and being converted to mod_perl.
What are your thoughts or suggestions?
~Donavon
|
gmake error on Glib compile
2 direct replies — Read more / Contribute
|
by MikeMc69
on Aug 16, 2023 at 06:09
|
|
|
Hi I ve been trying to install glib off and on for days ultimate goal to get gtk3 + glade running
Strawberry perl 5.30.3 ive tried a few versions
Gtk3 is installed and running showing the demos all ok
I would like to do it through cpanm install Glib but that fails
Firstly it was missing libs so i found a previous thread on compiling glib from 2016 and copied the Makefile command as below altering it for my install
perl Makefile.PL INC="-IC:\gtk+\include\glib-2.0 -IC:gtk+\lib\glib-2.0
+\include" LIBS="-LC:gtk+/lib -lgobject-2.0 -lglib-2.+0 -lintl -lgthre
+ad-2.0"
When I run gmake I get lots of undefined errors as per below
C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x8
+6_64-w64-mingw32/bin/ld.exe: gperl-gtypes.o:gperl-gtypes.c:(.text+0x2
+e2): undefined reference to `g_enum_register_static'
C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x8
+6_64-w64-mingw32/bin/ld.exe: gperl-gtypes.o:gperl-gtypes.c:(.text+0x3
+22): undefined reference to `g_enum_register_static'
C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x8
+6_64-w64-mingw32/bin/ld.exe: gperl-gtypes.o:gperl-gtypes.c:(.text+0x3
+62): more undefined references to `g_enum_register_static' follow
collect2.exe: error: ld returned 1 exit status
gmake: *** [Makefile:598: blib\arch\auto\Glib\Glib.xs.dll] Error 1
Am I missing something obvious?
Thanks in advance for any help / guidance
|
Promoting Text::CSV to base Perl?
4 direct replies — Read more / Contribute
|
by mldvx4
on Aug 16, 2023 at 02:59
|
|
|
Greetings to those who check PerlMonks daily, and everyone else, too, from those of us with short, random user names.
Whom should I ask about an proposing official consideration of promoting Text::CSV to the Perl base, to consider affording it the same status and dissemination as say Getopt::Long or Data::Dumper? The reason for asking is that it seems that basic upstream AWK has recently gotten integrated CSV support now:
Kernighan, now 80, offhandedly mentions in the interview that he has also patched something "quick and dirty" to let AWK handle CSV files.
That CSV support will likely percolate down to all the AWK variants someday, too. So it would be very nice to add Text::CSV to the base of Perl to keep up with the competition so to speak, though I am unsure of the process to ask, whom to ask, whether it has been considered already, and the overall merits/demerits of the idea.
Myself, I only learned AWK rather recently and have gotten by for ages and ages with Perl for such tasks. Generally, perl -a -p -e ... and perl -a -n -e ... have done the job well for all these decades except when encountering with CSV files. Adding Text:CSV to the base would be a boon. Manually installing Text::CSV from CPAN or the relevant repository each time is feasible for many people but not all. Many don't administer their own boxes or have very helpful system administrators. So it would be perk for them to have it in the base, not to mention an opportunity for positive press about keeping with the times and "data science" and such.
tldr; keeping up with AWK
|
Service to subscribe to specific CPAN modules' releases?
2 direct replies — Read more / Contribute
|
by Dallaylaen
on Aug 15, 2023 at 08:34
|
|
|
Hello esteemed monks,
Is there such a service where I could subscribe to notifications about new versions of modules I'm specifically interested in?
I know there's a whole section devoted to this in the perl weekly newsletter, but the 12 stars requirement is a bit of "one size fits all".
Thank you!
|
Unable to get any decrypted output from $gpg->verify
3 direct replies — Read more / Contribute
|
by xuo
on Aug 14, 2023 at 05:41
|
|
|
Hello all,
I'm using the Perl module Crypt::GPG and I'm unable to decrypt a file (using the Mageia 8 distribution).
Encryption works well.
So up to now, I was using the system command (system("gpg --decrypt ...) but it seems that now there is a 2mn timeout which makes me unable to use this command on big encrypted files.
As I could not succeed to replace the "system" command with "use IPC::Run qw(run timeout) ; run ...", I'm trying again with the Crypt::GPG module.
Here is my code :
#!/usr/bin/perl
use strict ;
# Does not exist anymore in Mageia.
# use GnuPG qw( :algo ) ;
use Crypt::GPG ;
my $gpg = new Crypt::GPG ;
$gpg->gpgbin('/bin/gpg') ;
$gpg->secretkey('my_email_address') ;
$gpg->passphrase('my_gpg_passphrase') ;
my $encryptedFile = 'myfile.tar.gz.gpg' ;
my $tarFile = 'myfile.tar.gz' ;
my @encryptedFileArray = () ;
open(GPG_FILE, "$encryptedFile") || die "can't open file $encryptedFil
+e !" ;
@encryptedFileArray = <GPG_FILE> ;
close(GPG_FILE) ;
my ($plaintext, $signature) = $gpg->verify("\@encryptedFileArray");
# print("$plaintext\n");
open(TAR_FILE, ">$tarFile") || die "can't open file $tarFile !" ;
print(TAR_FILE $plaintext) ;
close(TAR_FILE) ;
exit ;
Do you know what I'm doing wrong ?
Thank you for your wisdom.
Regards.
Xuo.
|
|
|
|