karjala
- Website: www.karjala.org/
- About: I'm a Perl developer.
Recent Actions
-
Commented on New class of memory leaks inaugurated by Perl v5.40 (and we are unprepared for that)
This post appeared normal and readable, now someone or something changed the code snippet to unreadable....
-
Posted New class of memory leaks inaugurated by Perl v5.40 (and we are unprepared for that) to Karjala
The following script leaks memory in perl v5.40, and it did not in v5.38:
use Scalar::Util 'weaken'; my $z; { my $x; my $y; my sub my_sub { $x = shift; return sub { $y }; }; my $subscriber = {}; $subscriber->{foo} = my_sub…
-
Posted How I use PostgreSQL's timestamptz fields in my Mojo apps to Karjala
I created a function in Perl called
pg_dt
, that will convert PostgreSQL’s datetime values into Perl’s DateTime values and vice versa. This is useful both when you want to store DateTime values into the database, or want to convert the pg… -
Posted How to use perl v5.40's boolean builtins in Mojo::Pg queries to Karjala
Perl v5.40 introduced native true and false keywords. Unfortunately not all CPAN modules are ready to use them. One of those not yet ready is Mojo::Pg.
Normally you'd want to pass booleans to your queries as just 1's and 0's. However, since Mojo::JSON's true & false stringify to 1 and 0, m…
-
Posted Today I learned... #1: variable scoping in if-else blocks to Karjala
This block of code is valid Perl:
if (my $var1 = calc1()) { say $var1; } elsif (my $var2 = calc2()) { say "$var1, $var2"; }
As you can see, $var1, which is declared in the if clause, is visible inside the elsif clause too.
Perl n…
-
Posted An easy way to use WebSockets? to Karjala
It's often (for work or for personal projects) that I need to create a real-time feature for a website. This can range from a simple notification whenever an event happens on the server of an existing website, to implementing a real-time multiplayer game or adding a feature inspired from social…
-
Posted RxPerl release candidate is out to Karjala
I was working on the completely fresh rewrite of perlmodules.net, when I decided I want to use WebSockets with this site.
So "innovations" started flowing through my mind in order to achieve WebSocketry, and ended-up deciding it would be very helpful if I could use ReactiveX on my Mojolici…
-
Commented on perlmodules.net remake
I set up a github repo for the project. https://github.com/perlmodules-net/pmnet You may write any feature requests you have at the issues....
-
Posted perlmodules.net remake to Karjala
Hi. The current version of perlmodules.net was made in 2013/2014 with AngularJS, it is hard to update and so I’m starting a remake of the site.
Apart from an aesthetic makeover, it will be built with Vue.js/nuxt.js i…
-
Commented on A very easy way to create XML
I updated XML::MyXML with a tutorial that showcases the simple_to_xml function in every possible way. You can see it here: https://metacpan.org/pod/release/KARJALA/XML-MyXML-1.02/lib/XML/MyXML.pm#simple_to_xml($simple_array_ref)...
-
Commented on A very easy way to create XML
Saif, adding attributes in a particular element is easy by using the attr method once you create an XML::MyXML::Object object from your XML, as described in the xml_to_object function. Adding elements, and in general, manipulation, is harder (you might be...
-
Commented on A very easy way to create XML
Toby, thanks for you input. Just so you know, [{foo => {bar => 'baz'}}] and [{foo => {bar => baz}} => undef] produce the first output, whereas {foo => {bar => baz}} produces the second. The idea is that each set of sibling elements (regardless of whether they're 1 or more than 1, and...
-
Posted A very easy way to create XML to Karjala
Back in 1999/2000 when I was first learning Perl, I read an article by a Perl advocate in which he said he believes Perl would become the best language to do XML with. Having been impressed by Perl’s power and ease-of-use (coming from C and Pascal) I imagined how great it would be if…
-
Commented on You can import your Metacpan favorites into perlmodules.net!
If there's anything else you with this site had, please let me know (preferably by emailing the address at the bottom of the site)....
-
Posted You can import your Metacpan favorites into perlmodules.net! to Karjala
PerlModules.net is a website that notifies you when your favorite modules get updated, via e-mail or RSS.
As of today, you can now import your favorites from metacpan.org into perlmodules.net.
And if your metacpan favorites list changes in the future, no worries: the corresponding …
-
Posted Multi-user feeds in Perlmodules.net! to Karjala
Perlmodules.net, the site that notifies you about new releases of your favorite modules, just got better for groups, with Multi-User feeds.
If you're part of a project team, and wish to have your team members be able to view and/or modify your feed(s), as of today you can.…
-
Posted PerlModules.net now sends emails! to Karjala
I have updated perlmodules.net with an important feature.
PerlModules.net is a site that notifies you whenever your favorite Perl modules get updated.
Up until now, it let you track changes to your favorite modules through an RSS reader. If you wanted to receive email updates inste…
-
Posted blogs.perl.org is broken to Karjala
When I click on "login" from the front page and type in my username & password, I get a "Permission denied." error message. If I need to log in, I have to reset my password, and then I'm logged in.
-
Commented on New developer tool: perlmodules.net
Philipp, I'll do your request in the next 7 days....
-
Commented on New developer tool: perlmodules.net
Mithaldu, I just finished your request. When viewing a distribution page, you can add it to one of your personal feeds now....
-
Commented on New developer tool: perlmodules.net
Searching for "rss email" brought up this service, which seems to work fine so far: http://blogtrottr.com/...
-
Commented on New developer tool: perlmodules.net
I added your feature request in my ToDo list....
-
Commented on New developer tool: perlmodules.net
I tried "Feed My Inbox" a bit, and didn't get emails for any of the updates in my RSS feed. I guess it's a problematic service. Must find an alternative....
-
Posted New developer tool: perlmodules.net to Karjala
Hi people.
I just developed perlmodules.net, a website that can be of use to Perl developers.
Say you’re a Perl developer working on a project that depends on a number of modules from CPAN. Or you’re maintaining a modul…
Comment Threads
-
preaction commented on
New developer tool: perlmodules.net
I'd really like to be able to subscribe to an Author. I like to see what interesting things that certain people produce, without having to know in advance what that module is (and also to keep up with what friends are up to).
-
mephinet commented on
You can import your Metacpan favorites into perlmodules.net!
Alex, you're awesome - that's a really cool feature, thanks a lot!
-
Salvador Fandiño commented on
A very easy way to create XML
Last year, also facing the problem of generating XML from Perl in a simple way I developed and released XML::FromPerl which is a very thin layer on top of XML::LibXML.
Some code using it to generate complex XML can be seen here!
-
Aristotle commented on
New class of memory leaks inaugurated by Perl v5.40 (and we are unprepared for that)
Sorry about that.
-
Yang Bo commented on
New class of memory leaks inaugurated by Perl v5.40 (and we are unprepared for that)
Cannot see a circular reference here, so probably a bug.
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.