Randal Schwartz is giving his "Half My Life with Perl" talk tomorrow Saturday, December 14, at 5:00 PM - 7:00 PM EST. You can register for the livestream.
I think the video will also be available later, and when I know those details I'll post those too.
submitted by /u/briandfoy
[link] [comments]
Me: oi, there's like a few dozen modules I need to rebuild that have changed their maintainers, so their CPAN paths all changed, now I need to update them all, sounds like a bit of busywork, 'innit?
MetaCPAN: don't fret, we have this nifty feature where you use the /modules/by-module/X/X-Y
paths, and those won't change!
Me: OK mate!
... time passes ...
... I need to rebuild the packages again.
Me: MetaCPAN, mate, do you know why am I getting 404 pages instead of tarballs under all /modules/by-module/...
links? Now I have to change them all back to author-based ones! Sounds like busywork again, 'innit?
MetaCPAN: LOL LMAO
submitted by /u/WesolyKubeczek
[link] [comments]
Is there a way to directly include a variable declared in a dumped config file in one of my scripts? The structure of the file is below:
{ my $variable = { “key1” => { “key2” => { “key3” => “value1”, }, }, }; }
1;
As you can see, the variable declares a deeply nested hash_ref which I don’t want to have to parse manually. I also don’t have any control over the dumped variable file, the design flow I am working in dumps that format and it would both be cumbersome to try and get the script owner to modify the output to use our instead of my and this could anyways possibly effect currently existing downstream flows that depend on this specific format. As for why we didn’t use a yml in the first place, no idea lol
For reference, I need to take a list of keys from within the hash and iterate over each element
submitted by /u/Its-goodtobetheking
[link] [comments]
Any one using WWW::Mechanize::Chrome? I gave it a try yesterday on a personal scraping project and my results were hit and miss. I realized that I installed with cpm which does not run test by default. I downloaded it with cpan and manually ran the make and make test. I received dubious responses from the first test all the way to 60 and the testing locked up on t/61-mech-download.t
. I found literally 160 chrome processes zombied.
This was run using perlbrew 5.40 on an updated Debian 12 box.
Anyone else seen something like this?
submitted by /u/LearnedByError
[link] [comments]
use DDP; use DateTime::Format::Strptime; my $strp = DateTime::Format::Strptime->new( pattern => '%m/%d/%y %H:%M', time_zone => 'Europe/Rome', ); for my $date ( "3/25/06 2:44", "3/26/06 2:44" ) { my $dt = $strp->parse_datetime( $date ); p $dt; }
submitted by /u/Perl_Version_42
[link] [comments]
I have code like this: my @f1 = ($from =~ m{/[^/]+}g); my @f2 = ($to =~ m{/[^/]+}g);
Where ($from, $to)
is also aviable as @_
. How would I make this into one line, and so I don't have to copy pase the reuse expression. IIUC, map
can only return a flat array, or arrayrefs, which you cannot initalise the values with.
submitted by /u/Both_Confidence_4147
[link] [comments]
Inspite of bash
being the main Linux "scripting" language I have never liked it much, always forgetting the syntax.
It comes up where regular expressions are concerned, seemingly the one with a good standardized system of regular expression syntax.
Regardless of how archaic or passe it is, once mastered would Perl be a good fit for that need?
I know about Python and Ruby, but if I have no particular interest in AI.
Could Perl be it, once mastered, or could that be Awk?
submitted by /u/vfclists
[link] [comments]
The Perl Data Language (PDL) has its own Advent Calendar apart from the Perl Advent Calendar.
PDL Advent site (calendar view)
- December 1 - What is Perl Data Language?
- December 2 - Maps with Perl Data Language
- December 3 - Perl Data Language on the Mac
- December 4 - (thread) Interpolation with Perl Data Language
- December 5
- December 6
- December 7
- December 8
- December 9
- December 10
- December 11
- December 12
- December 13
- December 14
- December 15
- December 16
- December 17
- December 18
- December 19
- December 20
- December 21
- December 22
- December 23
- December 24
- December 25
submitted by /u/briandfoy
[link] [comments]
Self-awareness disclaimer: These are just my thoughts, I claim no authority. I have not participated in any of the purported fierce interpersonal battles that have occurred.
But I'm not an indifferent bystander. I am a long-time Perl programmer, which simply means that I have been programming in Perl =>> 5 <<= for a long time. ^_^
I do think that there should be a "next-gen" Perl. I do think that it should have a clear designator. (This is largely a sociological argument; programming is a social phenomenon.) Be meaningful as a reference to an important and elegant set of new features, attract new people, keep being awesome.
I understand that there is a tension between the core maintainers (who want to elide unnecessary effort) and people who want Perl "next gen" to have a new label (historical marker, presence identifier). Both sides have a good point. Can we not simply do both ?
Can Perl can't be absolute Perl with a market label that matches "[A-Z0-9]" ?This doesn't need to clutter the code. Let the core maintainers make theirs jobs easier. Let 7 , 8 , 9 , 10 , 11 be possible market-facing labels. I understand the allusion to "42" and I am a D. Adams fan, but I see more advantage in my set:
7: puts the "6" into the past, is a coherent progression, and is a cool prime number 8: puts both "6" _and_ "7" into the past, and can be tilted to represent Infinity 9: a numerical stretch for the label, but goes to Infinity + 1 \^_^ 10: the power of base 10 and other such marketing possibilities
I have played with Raku. I'm happy to watch it evolve, there are interesting approaches in the language. I'm happy that Perl and Raku are in the same family. I really am excited about Object::Pad and Corinna.
If I am completely wrong in my musings, please feel free to eli5 -- since this is reddit. ^_^ I confirm that I have indeed been at least 5.
submitted by /u/singe
[link] [comments]
Hello!
Anonymonk here, due to personal info. I've been primarily a Perl programmer since (approximately) the dawn of Perl 5 (with a B.Sc.), with some systems and embedded programming along the way. Over 20 years in software dev, then I was forced to take a 10 year break due to illness. I'm doing a little better, but I'm having trouble staging a comeback tour. I could use a little advice.
For starters, it's been long enough that almost all of my previous contacts have moved on, and the ones that haven't, well they'd want me to jump back in to management, which is not something I'm really ready for, nor do I want to go there anyway. Apart from that, the gap in my resume is something I've felt it's best to be honest about; though it is still a huge gap which raises reasonable concerns about whether my skills are still reasonably current and sharp. I've done a decent job of keeping up with new tech in the meantime, but I don't have a job I can point to and say, "look, I did that there". I have a few new modules on CPAN, but nothing that's usually super relevant.
I just want a nice, interesting development job, mostly using Perl, at or around the current market rate. Or a few fairly consistent part-time contracting gigs.
Freelancing sites like Upwork do not seem to even come close to a reasonable fee for service, at least based on the North American market. The very rare job there that *might* cover my power bill tends to be rare enough to not be worth the time to find, especially when 100 other people bid on it and lowball the amount anyway.
What do typical senior contracting/consulting rates look like for Perl devs these days? And for full time salaried, am I out to lunch with my expected range (depending on the job responsibilities and location) of about US$80-100k/year to start, based on NA market?
And most importantly, where do you all look for work now? LinkedIn seems OK-ish. jobs.perl.org gets a trickle of what it used to, but the quality of the posts there is still good, at least. The good news is I am not in a gigantic rush to find work (especially full time), but in a perfect world I'd get a base of relatively steady contract work so I can build myself up to full time over the next 6-12 months or so. Ideas?
submitted by /u/ansi_escape
[link] [comments]
If you need more while you wait, there's also the 2023 megathread.
Perl Advent site (calendar view)
- December 1 - (thread) While You're Waiting for Corinna
- December 2 - (thread) A Trio of Modules to Speed Up Your Web Applications!
- December 3 - (thread) Sleigh Bells and Custom Ops: A Jolly Journey with Ref::Util
- December 4
- December 5
- December 6
- December 7
- December 8
- December 9
- December 10
- December 11
- December 12
- December 13
- December 14
- December 15
- December 16
- December 17
- December 18
- December 19
- December 20
- December 21
- December 22
- December 23
- December 24
- December 25
submitted by /u/briandfoy
[link] [comments]
- December 1 - (thread) While You're Waiting for Corinna
- December 2 - (thread) A Trio of Modules to Speed Up Your Web Applications!
- December 3 - (thread) Sleigh Bells and Custom Ops: A Jolly Journey with Ref::Util
- December 4
- December 5
- December 6
- December 7
- December 8
- December 9
- December 10
- December 11
- December 12
- December 13
- December 14
- December 15
- December 16
- December 17
- December 18
- December 19
- December 20
- December 21
- December 22
- December 23
- December 24
- December 25
submitted by /u/briandfoy
[link] [comments]