Recent CPAN uploads - MetaCPAN

Resource-Silo-0.11

lazy declarative resource container for Perl.
2023.10.04 20:16

Dist-Zilla-Plugin-GitHub-CreateRelease-0.0004

Create a GitHub Release

Changes for 0.0004

  • Significant Changes from 0.0002
  • Detailed Change Log
2023.10.04 19:31

App-Greple-type-1.0301

file type filter module for greple

Changes for 1.0301 - 2023-10-04T19:00:40Z

  • make --no-md option to work
2023.10.04 19:00

App-Greple-type-1.02

file type filter module for greple

Changes for 1.02 - 2023-10-04T17:44:37Z

  • implement negative options
2023.10.04 17:45

Valiant-0.002003

Validation Library and more

Changes for 0.002003

  • This is probably not a mandatory upgrade, it has lots of small tweaks, tests and doc updates but nothing major.
  • POC Pager HTML component. Totally undocumented or tested.
  • Updates to the example application to help test this better
  • Lots of minor tweaks and fixes to the way internationalization and model naming works. Added more test cases.
2023.10.04 17:28

Object-Pad-0.804

a simple syntax for lexical field-based objects

Changes for 0.804 - 2023-10-04

  • CHANGES
  • BUGFIXES
2023.10.04 16:16

Catmandu-OAI-0.20

Catmandu modules for working with OAI repositories

Changes for 0.20 - 2023-10-04T14:56:53Z

  • Adding sleep option
2023.10.04 12:57

CryptX-0.080

Cryptographic toolkit

Changes for 0.080 - 2023-10-04

  • fix #95 AES-NI troubles on MS Windows (gcc compiler)
  • fix #96 Tests failure with Math::BigInt >= 1.999840
  • Enabled AES-NI for platforms with gcc/clang/llvm
2023.10.04 11:07

App-IndonesianNumberUtils-0.032

CLIs related to Indonesian numbers (NIK, NOPPBB, NPWP, etc)

Changes for 0.032 - 2023-10-03

  • No functional changes.
  • [build] Rebuild to update documentation of parse-pom-code with newest Business::ID::POM (0.005).
2023.10.04 10:51

Business-ID-NOPPBB-0.091

Validate (and parse) Indonesian property tax number (NOP PBB)

Changes for 0.091 - 2023-10-04

  • Update to latest version of Locale::ID::Province (renamed functions).
2023.10.04 10:42

More…

Business-ID-NKK-0.003
SPVM-0.989050
Data-Printer-Theme-Zellner-0.02_00
DBD-mysql-5.001
DBD-mysql-4.051
OpenAPI-Modern-0.048
SPVM-0.989049
Pod-Weaver-Plugin-Sah-Schemas-0.074
ExtUtils-Typemaps-Magic-0.003
Net-Waiter-1.08
RT-Extension-DynamicWebPath-0.03
Email-Address-Classify-0.02
Test2-Harness-1.000155
DateTime-Format-Natural-1.17_02
AsposeSlidesCloud-SlidesApi-23.09
Business-ID-POM-0.005
Config-ROFL-1.03
Config-ROFL-1.02
Math-GMPz-0.59
Data-Roundtrip-0.21
App-Greple-subst-2.3301
Data-Roundtrip-0.20
Crypt-JWT-0.035
CryptX-0.079_007
Number-ZipCode-JP-0.20230929
App-Greple-update-1.01

Stack Overflow – Active questions tagged [perl]

In perl, how can I use regex on a hash containing regexes?

How can I get a list of my bash aliases in perl?

Image::Magick is gone from Perl CPAN - where is it?

What is the difference between -> and :: in Perl

Perl match string containes dot too

perlcritic: eval "require $module";

Perl's "Package::->method()" (colon-colon-arrow) notation

Need info on the WebService::Discord::Webhook Perl module

How to copy files within the same directory to another subfolder using perl

Why are the form params not getting passed on to the end point through the apache handler?

replacing open $fh, '|-', ... with pipe

ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xdb00080, needed 0xdb80080)

Perl - Replace pattern only in lines matching another pattern

Will Perl's $@ ever be undefined after an eval?

How to rename XML element names, decided at run-time?

Extracting value in XML file

Amazon SES SMTP issue: Authentication protocol LOGIN is not accepted by the server

Remove all trailing "0"s from decimal numbers from a file [closed]

How do I get the Perl version string without license and build information?

How does Perl apparently avoid catastrophic backtracking?

News and Blogs

Articles on Perl.com - programming news, code and culture

The Perl Foundation

Grant Application (P Evans) Perl Core Development

[img]

A grant application from Paul Evans has just managed to be squeezed in into this round. Paul needs no introduction; he is one of the few people who speaks XS like a native, and has long been a valuable contributor to the Perl Core, as well as a lot of other interesting ancilliary projects. Also into animatronics, he has many modules dedicated to interacting with electronic interfaces. This application targets the Core development, which continues to evolve and improve.

Applicant profile
  • Name: Paul Evans / LeoNerd
  • Amount requested $20,000 (derived from roughly 20-40 hours per month at USD 60/hour…
2023.09.28 16:06

Maintaining Perl (Tony Cook) August 2023

[img]

Tony writes: ``` [Hours] [Activity] 2023/08/01 Tuesday 0.20 look at new coverity hits, briefly discuss with khw 0.27 github notifications 0.87 #21306 review and briefly comment 0.05 #21084 check latest CI results, apply to blead 0.13 #21296 test blead with the fix, close this PR 0.28 coverity look at older hits, one harmless, another false positive (in the context of perl) 0.18 #21181 apply to blead, perldelta 0.42 #21212 comment

1.28 #21313 testing

3.68

2023/08/02 Wednesday 0.08 #21306 review new changes and approve 0.37 #21304 comment 3.05 #21313 debugging

2.42 #21313 more debugging, long commen…
2023.09.22 12:13

PerlGPT Large Language Model, Phase 1

[img]

A new grant application from John Napiorkowski and Robert Grimes, this time targetting the development of a large language model trained specifically to develop Perl Code. These veteran coders suggest that using natural language to generate Perl code may potentially allow one to rapidly generate new APIs and applications, or at least give a skeleton to flesh out into a more elaborate tool.

Applicants:

John Napiorkowski & Robert Grimes

Amount Requested

The budget for this project is $8,800 USD, to be made in one lump-sum payment upon completion.

This amount is calculated by multiplying the estimated…

2023.09.20 09:53

The Perl and Koha Conference

The first ever Perl and Koha conference was held in Helsinki, Finland this year. It featured three main days of Perl and Koha presentations and two days of workshops. Workshops included a Perl training session, a masterclass for new Koha developers, Koha improvement initiatives, discussions on the future of Perl as a language, and more.

Koha is the first free open source software library automation package. In use worldwide its development is steered by a growing community of users. Koha is a framework developed in Perl with modules stored on CPAN. Koha allows end users to borrow books from wit…

2023.09.14 18:16

Maintaining Perl 5 Core (Dave Mitchell): June - August 2023

[img]

Dave writes:

This is my monthly report on work done during June-August 2023 covered by my TPF perl core maintenance grant.

I fixed a performance regression bug related to my 'multiconcat' optimisation work from about 5 years ago.

Other than that, I restarted my work on my "make stack reference counted" branch, got it into a working state, and merged it into blead. See below for a detailed explanation.

SUMMARY:

  • 11:02 GH #21360: Severe regex/concatenation performance regression
  • 49:45 make stack reference counted
  • 18:13 process p5p mailbox

TOTAL: * 79:00 (HH::MM)


Understanding the "stack not reference coun…

2023.09.14 08:37

Maintaining Perl (Tony Cook) July 2023

[img]

Tony writes:

``` [Hours] [Activity] 2023/07/03 Monday 0.92 #21181 fixes, testing, re-push and push to smoke-me 0.50 #21180 fixes, testing, push for re-CI 1.52 apply one of my PRs, look into unexpected mingw64 failure

on another PR

2.94

2023/07/04 Tuesday 0.42 #21120 apply to blead, perldelta update, add to maint votes 0.65 #21132, #21095 apply to blead, perldelta #21202 comment 0.08 #21118, #21060 apply to blead 0.28 #21031 apply to blead 0.85 #21041 testing, checks to see if regen changes meant this needed updates, apply to blead 0.45 #21030 testing, apply to blead, perldelta 0.30 #21180 check CI…

2023.08.28 08:15

blogs.perl.org

Perl Weekly Challenge #236 - Lemonade Stand

Welcome back to another round of the weekly challenge, with just one solution this week. I'm setting up a lemonade stand and need to deal with change. Interestingly, I can only sell one juice per person, so I hope you're not super thirsty!

We can take $5, $10, and $20 bills, and we don't start with any change, so we need our previous customers to provide us with change for future customers. Let's find out if we can make change for a set of customers.

Here's the code:

#!/usr/bin/perl
use v5.36;
use List::Util 'any';

my %till;
my $failure;
foreach my $bill (@ARGV) {
    if(!any {$bill == $_} (5, 1…
2023.09.30 15:34

This Week in PSC (118)

All three of us returned. We talked about

  • Getting a Perl 5.38.1 maint release out of the door
  • How to progress Pod format improvements (i.e. U<>)
2023.09.28 21:09

plenv-libdirs

A plenv plugin to add additional include directories to Perl.

This plugin sets the contents of file .perl-libdirs. It hooks into plenv-exec command and every time you run perl or any other command under plenv, plenv-libdirs uses the .perl-libdirs files to set the PERL5LIB environment variable.

plenv-libdirs makes use of .perl-libdirs files in the current working directory and every directory between it and root. Environment variable PERL5LIB has a list of paths separated (like in PATH) by a colon on Unixish platforms and by a semicolon on Windows (the proper path separator being given by the com…

2023.09.28 01:30

Perl Weekly Challenge 236: Exact Change

These are some answers to the Week 236, Task 1 of the Perl Weekly Challenge organized by Mohammad S. Anwar.

Spoiler Alert: This weekly challenge deadline is due in a few days from now (on October 1, 2023 at 23:59). This blog post offers some solutions to this challenge. Please don’t read on if you intend to complete the challenge on your own.

Task 1: Exact Change

You are asked to sell juice each costs $5. You are given an array of bills. You can only sell ONE juice to each customer but make sure you return exact change back. You only have $5, $10 and $20 notes. You do not have any change in hand…

2023.09.27 13:53

Hash of Arrays Deathmatch : Native Perl vs. DBM::Deep vs. Redis

Sometimes one has to make compromises between speed of execution and memory, other times one may not have to be. While working towards a fairly (at least in my mind) complete solution to map Nanopore Sequencing files, I ran against the need to create and access fairly large hash of arrays (think of 1M - 100Mof keys), with each array itself consisting of a a fixed number of elements.
The hash of arrays is a fairly straightforward and fast data structure to create in Perl, the memory overhead can be substantial as the number of keys and values scale upwards. While in my application (at least as…
2023.09.27 07:11

Perl Weekly Challenge 236: Array Loops

These are some answers to the Week 236, Task 2, of the Perl Weekly Challenge organized by Mohammad S. Anwar.

Spoiler Alert: This weekly challenge deadline is due in a few days from now (on October 1, 2023, at 23:59). This blog post offers some solutions to this challenge. Please don’t read on if you intend to complete the challenge on your own.

Task 2: Array Loops

You are given an array of unique integers.

Write a script to determine how many loops are in the given array.

To determine a loop: Start at an index and take the number at array[index] and then proceed to that index and continue this unti…

2023.09.26 02:29

Perl Hacks

Perl

Perl-Academy.de Blog

DEV Community: perl

Juicy loops

Weekly Challenge 236

Each week Mohammad S. Anwar sends out The Weekly Challenge, a chance for all of us to come up with solutions to two weekly tasks. My solutions are written in Python first, and then converted to Perl. It's a great way for us all to practice some coding.

This weeks pull request and blog post comes after the deadline. It's a long weekend here, so a virtual Sunday for me :)

Challenge, My solutions

Task 1: Exact Change Task

You are asked to sell juice each costs $5. You are given an array of bills. You can only sell ONE juice to each customer but make sure you return exact change bac…

2023.10.02 06:24

Perl Weekly #636 - Happy Birthday Larry

Originally published at Perl Weekly 636

Hi there,

A belated, Happy Birthday to the creator of Perl. May the joy that you have spread in the past come back to you on this day. Just for record, the birthday was on 27th September.

Do you use homebrew?

brian d foy did all the hard work to get homebrew up to the latest Perl v5.38. If you are keen to know the details then please do checkout the pull request.

Olaf Alders recently shared his cool creation, is: an inspector for your environment. I am sure for all System Administrators out there, it would be very handy.

I am not sure, if you noticed this but…

2023.10.02 04:23

Perl Weekly Challenge #236 - Lemonade Stand

Welcome back to another round of the weekly challenge, with just one solution this week. I'm setting up a lemonade stand and need to deal with change. Interestingly, I can only sell one juice per person, so I hope you're not super thirsty!

We can take $5, $10, and $20 bills, and we don't start with any change, so we need our previous customers to provide us with change for future customers. Let's find out if we can make change for a set of customers.

Here's the code:

#!/usr/bin/perl
use v5.36;
use List::Util 'any';

my %till;
my $failure;
foreach my $bill (@ARGV) {
    if(!any {$bill == $_} (5, 1…
2023.09.30 10:43

PWC 236 Task 1 A Change Would Do You Good

Task 1 of Perl Weekly Challenge 236 asks us to run a juice business in a highly ethical way: either customers get their juice, or we close the shop in humiliation, unable to give them correct change.

Task 1 Exact Change
You are asked to sell juice; each costs $5.
You are given an array of bills.
You can only sell ONE juice to each customer
but make sure you return exact change back.
You only have $5, $10 and $20 notes.
You do not have any change in hand at first.

Write a script to find out if it is possible
to sell to each customers with correct change.
Example 1

Input: @bills = (5, 5, 5, 10, 20…

2023.09.27 13:10

Introduction to Venus

In a previous article, I talked about why I created Venus. In this article, I'd like to formally introduce you to Venus, what it is, and what it does.

Standard library

Venus provides a standard library; a rich collection of pre-written packages, classes, and roles (i.e. traits) that come bundled with the distribution. This library provides a wide range of functionality that simplifies common programming tasks, making it a valuable resource for both new and experienced Perl developers.

At the heart of Venus' standard library is its focus on simplicity, productivity, and reusability. It includes cl…

2023.09.25 11:34

Perl Weekly #635 - Is there a Perl developer shortage?

Originally published at Perl Weekly 635

Hi there!

I just saw this question posted on DEV: Is There a Developer Shortage?. There were a few responses saying that there is an abundance of newbies and not very good engineers and there is a shortage in experienced and qualified engineers. That's the general view. How is it specifically for Perl?

On a related note, I guess we are all wondering what will be the impact of the rise of AI in software development. My guess is that it will further widen the gap between beginners and experienced programmers. It will be even harder to get an entry level job a…

2023.09.25 06:52

RabbitFarm

Exact Array Loops

The examples used here are from the weekly challenge problem statement and demonstrate the working solution.

Part 1

You are asked to sell juice each costs $5. You are given an array of bills. You can only sell ONE juice to each customer but make sure you return exact change back. You only have $5, $10 and $20 notes. You do not have any change in hand at first. Write a script to find out if it is possible to sell to each customers with correct change.

Solution

use v5.38;
use boolean;
use constant COST_JUICE => 5;

sub exact_change{
    my @bank;
    my $current_customer = shift;
    { 
        pus…
2023.10.01 17:54

What's the Similar Frequency, Kenneth?

The examples used here are from the weekly challenge problem statement and demonstrate the working solution.

Part 1

You are given an array of words made up of alphabets only. Write a script to find the number of pairs of similar words. Two words are similar if they consist of the same characters.

Solution

use v5.38;
use boolean;

sub is_similar{
    my($s0, $s1) = @_;
    my(%h0, %h1);
    do { $h0{$_} = undef } for split //, $s0; 
    do { $h1{$_} = undef } for split //, $s1; 
    return false if keys %h0 != keys %h1;
    do { return false if !exists $h1{$_} } for keys %h0;
    return true;
}

s…
2023.09.07 17:08

Not the MinMax Count

The examples used here are from the weekly challenge problem statement and demonstrate the working solution.

Part 1

You are given an array of distinct integers. Write a script to find all elements that is neither minimum nor maximum. Return -1 if you can’t.

Solution

use v5.38;
sub not_min_max{
    my($minimum, $maximum);
    do{
        $minimum = $_ if !$minimum || $_ < $minimum;
        $maximum = $_ if !$maximum || $_ > $maximum;
    } for @_;
    my @r = grep { $_ ^ $minimum && $_ ^ $maximum } @_;
    return @r ^ 0 ? @r : -1;
}

MAIN:{
    say join q/, /, not_min_max 3, 2, 1, 4;
    say join…
2023.08.21 20:27

Separate and Count

The examples used here are from the weekly challenge problem statement and demonstrate the working solution.

Part 1

You are given an array of positive integers. Write a script to separate the given array into single digits.

Solution

use v5.38;
sub separate_digits{
    return separater([], @_); 
}

sub separater{
    my $seperated = shift;
    return @{$seperated} if @_ == 0;
    my @digits = @_;
    push @{$seperated}, split //, shift @digits;
    separater($seperated, @digits);
}

MAIN:{
    say join q/,/, separate_digits 1, 34, 5, 6;
}
Sample Run

$ perl perl/ch-1.pl 
1,3,4,5,6
Notes

It has been…

2023.08.20 21:40

The Perl NOC

perlancar's blog

List of new CPAN distributions – Sep 2023

dist author abstract date
API-Vultr RAWLEYFOW A simple interface to the Vultr v2 API 2023-09-15T20:40:36
Acme-CPANModules-Clipboard PERLANCAR List of modules that interact with clipboard 2023-09-17T00:06:08
Acme-CPANModules-CountryCodes PERLANCAR List of modules related to country codes 2023-09-10T00:05:33
Aion DART a postmodern object system for Perl 5, as Moose and Moo, but with improvements 2023-09-28T16:07:20
Aion-Carp DART added stacktrace to exceptions 2023-09-08T10:07:52
Alien-SeqAlignment-edlib CHRISARG Provide the static, dynamic libraries and CLI (non-Windows) of the edlib aligner 2023-09-02T23:51:50
Alien-SeqA…
2023.10.01 06:45

List of new CPAN distributions – Aug 2023

dist author abstract date
Acme-CPANModules-Sampling PERLANCAR List of modules to sample items from a list 2023-08-11T00:05:10
Acme-MetaSyntactic-always_sunny PERLANCAR Characters from the sitcom It's Always Sunny In Philadephia (2005-) 2023-08-04T00:05:29
Alien-CXC-param DJERIUS Build and Install the CIAO cxcparam library 2023-08-17T22:33:57
Alien-Ruby NHUBBARD Alien package for the Ruby programming language 2023-08-21T03:30:10
Alien-libgs1encoders HANGY Build and install libgs1encoders, a C-based GS1 barcode parser 2023-08-17T21:17:02
Alien-parasail CHRISARG Install the parasail aligner shared libraries for use with…
2023.09.01 01:07

# where we turn Perl inside out

(cdlxiii) 8 great CPAN modules released last week

Updates for great CPAN modules released last week. A module is considered great if its favorites count is greater or equal than 12.

  1. App::DBBrowser - Browse SQLite/MySQL/PostgreSQL databases and their tables interactively.
    • Version: 2.342 on 2023-09-28, with 13 votes
    • Previous CPAN version: 2.341 was 8 days before
    • Author: KUERBIS
  2. App::Netdisco - An open source web-based network management tool.
    • Version: 2.067002 on 2023-09-27, with 15 votes
    • Previous CPAN version: 2.066000 was 8 days before
    • Author: OLIVER
  3. HTTP::Message - HTTP style message (base class)
    • Version: 6.45 on 2023-09-27, with 63 votes
    • Previous CPA…
2023.09.30 23:15

(cdlxii) 12 great CPAN modules released last week

Updates for great CPAN modules released last week. A module is considered great if its favorites count is greater or equal than 12.

  1. App::DBBrowser - Browse SQLite/MySQL/PostgreSQL databases and their tables interactively.
    • Version: 2.341 on 2023-09-20, with 13 votes
    • Previous CPAN version: 2.340 was 25 days before
    • Author: KUERBIS
  2. App::Netdisco - An open source web-based network management tool.
    • Version: 2.066000 on 2023-09-19, with 15 votes
    • Previous CPAN version: 2.065002 was 16 days before
    • Author: OLIVER
  3. DBD::SQLite - Self Contained SQLite RDBMS in a DBI Driver
    • Version: 1.74 on 2023-09-19, with 101 vote…
2023.09.23 22:21

(dlxvii) metacpan weekly report - Mojo::IOLoop::ReadWriteProcess

This is the weekly favourites list of CPAN distributions. Votes count: 45

Week's winner: Mojo::IOLoop::ReadWriteProcess (+3)

Build date: 2023/09/23 20:12:50 GMT


Clicked for first time:


Increasing its reputation:

2023.09.23 22:13

(dxcv) stackoverflow perl report

These are the five most rated questions at Stack Overflow last week.
Between brackets: [question score / answers count]
Build date: 2023-09-23 20:11:27 GMT

  1. Return to old behavior for Perl hash randomization - [3/2]
  2. Performance of deep recursion versus tail recursion - [3/0]
  3. How to skip the rest in perl as next in awk? - [2/3]
  4. Perl to set/reset 8th bit on string - [2/2]
  5. Get "Inappropriate ioctl for device" when using Perl - [2/2]
2023.09.23 22:12

(cdlxi) 11 great CPAN modules released last week

Updates for great CPAN modules released last week. A module is considered great if its favorites count is greater or equal than 12.

  1. CBOR::XS - Concise Binary Object Representation (CBOR, RFC7049)
    • Version: 1.87 on 2023-09-10, with 13 votes
    • Previous CPAN version: 1.86 was 1 year, 10 months, 6 days before
    • Author: MLEHMANN
  2. MCE - Many-Core Engine for Perl providing parallel processing capabilities
    • Version: 1.889 on 2023-09-13, with 102 votes
    • Previous CPAN version: 1.888 was 2 months, 22 days before
    • Author: MARIOROY
  3. MCE::Shared - MCE extension for sharing data supporting threads and processes
    • Version: 1.886
2023.09.17 08:47

(dxciv) stackoverflow perl report

Recent MetaCPAN News

perl on nxadm

Perl Advent Calendar 2022

Perl on Medium

Download Perl in A Nutshell: A Desktop Quick Reference (2nd Edition) by Ellen Siever,Stephen…

[img]

Review Perl in A Nutshell A Desktop Quick Reference nd Edition by Ellen Siever Stephen Spainhour Nathan Patwardhan

Continue reading on Medium »

2023.10.02 18:52

Read Advanced Perl Programming: From Advanced to Expert by William “Bo” Rothwell

Review Advanced Perl Programming From Advanced to Expert by William quot Bo quot Rothwell

Continue reading on Medium »

2023.10.02 12:44

Scripting Language Trends

[img]

Yes, all of us consciously or not are using scripting languages in our daily life. For instance, if you are able to read this article…

Continue reading on Medium »

2023.10.01 18:20

Download pdf Joseph Perl’s Revealer Of Secrets: The First Hebrew Novel (Modern Hebrew Classics) by…

[img]

Review Joseph Perl s Revealer Of Secrets The First Hebrew Novel Modern Hebrew Classics by Dov Taylor

Continue reading on Medium »

2023.09.29 17:30

[PDF] Read Perl in a Nutshell: A Desktop Quick Reference (In a Nutshell (O’Reilly)) by Nathan…

[img]

Review Perl in a Nutshell A Desktop Quick Reference In a Nutshell O Reilly by Nathan Patwardhan Ellen Siever Stephen Spainhour

Continue reading on Medium »

2023.09.29 14:46

Recursive Günlükleri — 1

[img]

Özyinelemeli Fonksiyonla Karmaşık Veri Yapısı İçerisindeki Stringlerin Decoding’i

Continue reading on Medium »

2023.09.27 11:32

Active questions tagged perl - Stack Overflow

In perl, how can I use regex on a hash containing regexes?

2023.09.02 07:20

How can I get a list of my bash aliases in perl?

2023.10.04 14:18

Image::Magick is gone from Perl CPAN - where is it?

2023.10.04 04:01

Perl match string containes dot too

2023.09.22 06:36

Recent Commits to perl5:blead

The Perl and Raku Conference

ETOOBUSY

PWC236 - Array Loops

TL;DR

On with TASK #2 from The Weekly Challenge #236. Enjoy!

The challenge

You are given an array of unique integers.

Write a script to determine how many loops are in the given array.

To determine a loop: Start at an index and take the number at array[index] and then proceed to that index and continue this until you end up at the starting index.

Example 1

Input: @ints = (4,6,3,8,15,0,13,18,7,16,14,19,17,5,11,1,12,2,9,10)
Output: 3

To determine the 1st loop, start at index 0,
the number at that index is 4, proceed to index 4,
the number at that index is 15, proceed to index 15
and so on until you're…
2023.10.01 06:00

PWC236 - Exact Change

TL;DR

Here we are with TASK #1 from The Weekly Challenge #236. Enjoy!

The challenge

You are asked to sell juice each costs $5. You are given an array of bills. You can only sell ONE juice to each customer but make sure you return exact change back. You only have $5, $10 and $20 notes. You do not have any change in hand at first.

Write a script to find out if it is possible to sell to each customers with correct change.

Example 1

Input: @bills = (5, 5, 5, 10, 20)
Output: true

From the first 3 customers, we collect three $5 bills in order.
From the fourth customer, we collect a $10 bill and give back…
2023.09.29 06:00

SQLite import with AutoCommit turned off

TL;DR

Schwern wrote a little gem.

Some time ago I wanted to import a few CSV files in one SQLite database file and I initially tried to do it with Perl. It was sloooooow.

Then I looked for alternatives and found out .import from the command-line client sqlite3. This is reasonably fast, so I used it straight away and forgot about it.

Until I came to read Schwern’s little gem, hinting to turn AutoCommit off. That hit the nail so good that one single hit sufficed.

So here’s an example:

#!/usr/bin/env perl
use v5.24;
use warnings;
use experimental 'signatures';

use DBI;
use Text::CSV_XS;

my $csv_file…
2023.09.20 06:00

Skull with the Decktet

TL;DR

Playing Skull with the Decktet is pretty straightforward.

If you happen to have a deck of the Decktet, you can easily play Skull too:

  • use the “Aces” as skulls
  • use the “Kings” as point counters
  • use any triple of numbered cards as roses (e.g. first player takes all twos, second player all threes, and so on).

That’s it! It even supports up to 6 players like the original game.

It’s also possible to use a regular deck of cards, although it can be challenging to go beyond 4 players (still possible but a little “abstract”).

Cheers!

2023.09.12 06:00

MIME Header X-Unsent

TL;DR

I discovered about X-Unsent.

I like automating repetitive tasks with small command-line programs because it’s fun and spares me a lot of errors, mostly in the form of things I forget. So it’s no wonder that after the thirdAHEMthirtiest email with the same shape, I thought about automating the generation of those emails too.

For reasons that I’m not willing to confeAHEMdisclose, I’m not sending those email straight away but through the Outlook client. Only fact is, when I generate an email in a valid, standards-compliant way using Perl (via module MIME::Entity, in particular), opening it wit…

2023.09.07 06:00

On Craft

Go read On Craft.

2023.09.06 06:00

rjbs forgot what he was saying

common per-host colors

I found a note to myself that I should post about my per-host colors. I don’t know whether it’s of general interest to whoever reads this thing, but I guess I thought that once, so here we go.

I work on a bunch of different hosts, from my laptop to my Raspberry Pis to work systems, and others. At work, hosts have different color prompts by datacenter, and I thought this was a good way to remind myself where I was running my commands.

First, I made a little shell program called .sh/host-color:

HOSTNAME=`hostname -s`
if [ -z "$HOSTNAME" ]; then
  RJBS_HOST_COLOR=247 # no hostname! dim unto death
el…
2023.09.02 16:12

either the Nanoleaf touch API is broken, or I am

When I bought my Nanoleaf panels, which I wrote about in my previous two posts, I didn’t realize that they’re not just programmable lights. They’re also touch sensors. Or so they claim! The truth is, I haven’t been able to use the touch interface reliably. This post will recount my efforts.

I should say up front: I haven’t really tried to use the default touch programming. That is: I haven’t gone into the Nanoleaf iOS app to set events onto touch events. I know that isn’t what I want to do long term, and I didn’t have any good ideas about how to use it for diagnostic purposes. I do know that th…

2023.09.01 14:21

getting started with Nanoloeaf Shapes

For my birthday, some family sent me a $200 gift card for Amazon. I wasn’t sure what I’d like. I have too many books queued up already, and just sort of enough stuff. I knew there’d be some toy or luxury that would be a good pick, but nothing sprang to mind. I mentioned this conundrum to Rob N, who said “Why not Nanoleaf?”

I didn’t recognize the name, but once I looked it up, I did. Nanoleaf makes a bunch of “smart” lighting stuff that may have seen, too. The most notable products are sticks or basic geometric shapes that snap together and light up independently. I said, “Colored lighting with…

2023.08.24 12:00

streaming updates to Nanoleaf

In my last post about Nanoleaf, I ended by saying that I wrote a program to light up each panel a different color, to help me pick out which panel had which panel id. I also said that I didn’t make that program using the custom animation API. It’s true! I used the streaming interface. I actually got that going before the custom animations. It felt like what I’d want: a way to send a never-ending stream of instructions doing something like tracking log events or keystrokes or I don’t know what.

To get started, you need the same thing: a way to make HTTP requests to the controller. The request to…

2023.08.24 12:00

Perl

Still looking for 2023 Perl Advent Calendar articles

Right now it looks like we'll make it to Dec 8, if all of the articles materialize. I won't consider it a failure if we produce < 24, but it's nice to have a full calendar, as we did last year, when we had 27. More info at https://cfp.perladvent.org/ You can see the already accepted articles at https://github.com/perladvent/Perl-Advent/issues?q=is%3Aissue+is%3Aopen+label%3A2023

submitted by /u/oalders
[link] [comments]
2023.10.04 18:38

I made a perl module for dependency management. It's a simple wrapper around Makefile.

I made a perl module for dependency management. It's a simple wrapper around Makefile. submitted by /u/lskatz
[link] [comments]
2023.10.04 20:06

perl based HPC pipeline tools/framework

Is there a Perl based tool or a framework to submit, monitor and cache SLURM/SGE/... jobs on a cluster? I personally use nextflow, but it is a real pain to debug, also not a big fun of it's DSL. Here is the long list of the "frameworks" but none in Perl as far as I see: https://github.com/pditommaso/awesome-pipeline

submitted by /u/mestia
[link] [comments]
2023.10.03 11:31

List of new CPAN distributions – Sep 2023

List of new CPAN distributions – Sep 2023 submitted by /u/perlancar
[link] [comments]
2023.10.01 07:55

(cdlxiii) 8 great CPAN modules released last week

submitted by /u/niceperl
[link] [comments]
2023.09.30 21:16

Perl 5.38 finally brewed and ready for MacOS to drink!

It did take a while, but finally my Perl got upgraded to 5.38 during my early morning brew upgrade. Good times!

submitted by /u/nobono
[link] [comments]
2023.09.30 03:59

BigfootInMouth

Perl Jobs

Senior Perl Developer, Remote, Toronto ON Canada (Tokeet.com)

Tokeet.com is searching for a knowledgable, motivated, and highly skilled Senior Perl developer to write robust, high-quality, and production ready code that powers our applications. The role mainly includes creating, updating, and expanding API and other backend services running on distributed networks globally.

We are seeking very top level developers who are able to jump in and start contributing in the shortest amount of time. We have high ethical standards which are equally important to us. You must hold the same core values that define who we are and how we approach our work.
2023.09.04

Senior Perl Developer - German Speaking - 100% Remote - freelance, Germany - Remote working (ECM Talent)

Senior Developer - Perl
Experience level – 6- 8 years / 8-12 years.
3-6 month initial contract + extensions long term

The core competencies of the person should include the following : -
- Expert in programming with PERL, REST API and SQL
o Develop and provide SQL queries by customer demand
o Create, exchange and update existing databases via REST API
o Develop PERL scripts for steering and executing developed queries and updates

- Expert in security and authentication mechanisms like SAML2 and SSL-Certificate handling
o Integrate, manage and update recurring SSL certificates updates in collab…
2023.08.10

UK Remote Perl Programmer for Leading Enterprise Tech Publication, UK (Remote) (Perl Jobs by Perl Careers)

Our client is a global leader in the enterprise technology publishing industry, providing audiences worldwide with stimulating perspectives and unique news on enterprise tech that matters today and tomorrow. They are seeking a talented Perl programmer to manage the full life-cycle of software projects on a remote basis. The ideal candidate is UK-based and has experience writing high-quality Perl code.

You will ensure the the client’s website remains top-notch and that journalists have the tools they need while communicating effectively with your wider team.

Required qualifications include exce…
2023.08.02

Join the Team Revolutionizing Recruitment! UK Remote Perl + Typescript Dev, UK (Remote) (Perl Jobs by Perl Careers)

Are you a talented Perl Developer looking to make a significant impact in the world of recruitment? Look no further! Our client is seeking a skilled Perl Developer to be part of their mission in helping recruiters become smarter and faster.

Ideal candidate has solid Perl experience in addition to being comfortable with TypeScript and/or Node.js.

As a Perl Developer, you will play a crucial role in building cutting-edge solutions that empower recruiters to build personal brands, uncover new business opportunities, attract top-notch candidates, and engage in more meaningful conversations.

Join a…
2023.08.02

Lead Perl Developer, Europe (Glopal)

Glopal connects millions of buyers and merchants around the world to unlock cross-border trade. Glopal provides advanced international marketing solutions for ecommerce retailers and brands seeking to grow their businesses' globally. Using a suite of automated localization tools, merchants can quickly launch their stores on international markets and promote them to new audiences with Google Shopping Ads, with a hosted international checkout solution allowing buyers to complete orders with local shipping & payment methods.

We are a fast growing company that will offer you plenty of career oppor…
2023.07.31

Perl developer, Estepona Andalucia Spain (MultiSafepay)

Perl Developer at MultiSafepay

MultiSafepay is a cutting-edge fintech company that has been revolutionizing the payment industry for over two decades. As a leading Payment Service Provider, we specialize in developing innovative in-house solutions for a diverse range of merchants. Recognized as the top-ranked company in the "Emerce 100" Payment Service Provider category, we provide seamless and secure payment experiences for our clients. Join our dynamic team at our international office in beautiful Estepona, Málaga, and be a part of our journey towards global success.

About the Role: As a Per…
2023.07.26

Perl Software Architect- Remote Anywhere in the US, REMOTE - REMOTE, CA (KinderSystems)

KinderSystems (www.KinderSystems.com) is the leading provider of subsidy management software-as-a-service (SaaS) solutions to state agencies, Head Start programs, and child care providers. Built and supported by industry experts, KinderSystems envisions a world where all families, no matter their income level, have access to high quality child care. Hundreds of agencies in the publicly funded child care sector use KinderSystems applications via the cloud or mobile devices to streamline their operations, ensure compliance with government regulations, and meet the needs of the families they serv…
2023.06.26

Perl Developer - Outside IR35 / Fully Remote (1 year contract minimum), United Kingdom, Remote (OS Recruit)

An innovative company with a diverse portfolio business products urgently needs a Perl Developer to work fully remote, outside of IR35. They are simplifying their architecture, improving the performance of their applications and adapting working practices.

Responsibilities:

* Contributing to story writing and estimation sessions at a higher-level
* Attending agile ceremonies such as stand-ups, retrospectives etc
*Communicate effectively with stakeholders and build relationships with users around the business
* Communicating with third-party developers when we collaborate with other development…
2023.06.15