A new problem appeared about a week ago: Perl paniced – something I’ve never seen before – with an internal error message “attempt to copy freed scalar”. The problem occurred in Carp.pm which is a Perl core module. (weiterlesen…)
There are well-written and not-so-well-written modules on CPAN, but I didn’t discover any really bad stuff until now. The module I discovered today is also not bad stuff, but just “completely useless” – but it’s that good crap that it’s worth a blog post
(weiterlesen…)
The MongoDB abstraction layer YAWF::Object::MongoDB finally made it’s version 0.02 release to CPAN yesterday.
A lot of bugs have been fixed, some minor, some major and many new tests have been added.
The new version supports grouping of (top level) keys:
use YAWF::Object::MongoDB ( keys => [ { birch => 1, oak => 1, color => 1, }, { deer => 1, boar => 1, color => 1, },
] );
This will push birch, oak and color in one group (group 0) and deer, boar and color in another group (group 1).
While fetching a document out of the database using ->new(), all the keys from group 0 will be fetched. Accessing one of the keys from another group (1 or higher) will add all the keys from their group(s). “color” is part of two groups, it will be fetched if either group is being requested.
Accessing any undefined key using get_column() will download the whole database document.
This is very new and even if a test script is there and it passes, there might be bugs and issues. Grouping isn’t currently part of the POD documentation and using ->list will still ignore it. Please test it and comment and once I consider it to be some kind of “stable”, I’ll add it to POD.
YAWF is “yet another web framework”, but do we really need this? Not really, but I wrote it anyway ![]()
YAWF is easy to use and isn’t as flexible as other frameworks, but this is an advantage: A new YAWF project can be created very quick and you already got sessioning, database connections, object and relation creation from the database structure and some more things. (weiterlesen…)
In den bisherigen Artikeln zu diesem Thema hatte ich bereits angekündigt, ein kleines Projekt mit MongoDB umzusetzen – und das habe ich auch getan. Dabei hat sich MongoDB gut geschlagen, abgesehen von den beschriebenen Anfänger-Hürden sind (bisher) keine weiteren Probleme aufgetreten.
Mein Wrapper-Modul YAWF::Object::MongoDB ist bereits auf CPAN und sollte in den nächsten Stunden auch im Index verfügbar sein. (weiterlesen…)
People blogging about Perl often mention CPAN modules, but linking them to their CPAN site is quite nasty.
Here is a plugin for WordPress which converts all module names to CPAN-links (as long as they include a double colon): CPAN Auto Link Generator
Simply write CPAN::Testers within your blog post and it will show up as a link for the reader.
