Tag Archive: cpan


I just uploaded the Perl module Flickr::Simple2 version 0.03 to CPAN (PAUSE) so it might be a few minutes/hours before it shows up in the CPAN mirrors.

Revision history for Perl extension Flickr::Simple2.

0.03  Wed May 13 11:18:00 2009
- significant changes to the API to make more methods of the Flickr API available.
- using Iterator::Simple so we can retrieve one photo at a time and internalize the handling of Flickr Photo *pages*
0.02  Initial CPAN release
0.01  Thu Feb 12 11:33:35 2009
- original version; created by h2xs 1.23 with options
-XA -n Flickr::Simple2

Flickr

Flickr

Flickr::Simple2 is an XML::Simple based Perl API to communicate with Flickr.  It is in the early phases of development… comments are welcome :)

You will need to supply your own Flickr API key.

I released version 0.02 to Perl’s CPAN repository this morning after several delays related to the birth of my son a week ago.  As always, comments and constructive critism are welcome.

Why oh why is working with XML so bloomin’ difficult in Perl?

I love perl, I really do. The problem is that I need to also work with XML as well. CPAN has numerous modules that work with XML to one degree or another.

Producing XML is simple and easy. Reading or manipulating it involves loading the XML through a parser. The parsers will create a myriad of hashes, arrays and the like but navigating them even with tools like XPath make you want to perform oral surgery on yourself using rusty tiddly winks.

So my question is this: Are there any XML parsers for Perl that are easy to use without having to deal with arbitrary hashes of hashes of hashes and …. (don’t forget the arrays)?

The Perl Review: Issue 5.1, Winter 2008 has been released!

brian d foy and crew release another amazing Perl Review magazine issue.  If you haven’t subscribed yet, please please do so, it is a treasure trove of information!  You can even claim the subscription on your 2009 taxes as a business expense.  How cool is that?!?

Issue 5.1, Winter 2008

Surviving Your First Week of Perl (sample)

Issue 5.1, Winter 2008

Issue 5.1, Winter 2008

Programming with CPAN.pm (sample)

CPAN Patching with Git (sample)

Refactoring Factorial (sample)

Downloading From TiVo (sample)

plus Commentary and Module Reviews by Nadim Khemir, Perl News, and more…

On my media server, I wanted to set up Perl’s CPAN but when I ran install Bundle::CPAN, I ctrl-c’d out of it when I noticed that bzip2 wasn’t installed.  Silly me.  Soon after I started receiving:

Can’t call method “value” on an undefined value at /usr/share/perl5/IO/Uncompress/RawInflate.pm

Reinstalling Perl and all the related ubuntu packages doesn’t fix it, nor does removing the ~root/.cpan dir.  There is an easy workaround though.

# aptitude remove libcompress-raw-zlib-perl
Reading package lists… Done
Building dependency tree      
Reading state information… Done
Reading extended state information      
Initializing package states… Done
Building tag database… Done      
The following packages are BROKEN:
  libio-compress-zlib-perl
The following packages have been kept back:
  bind9-host dnsutils libbind9-30 libisccfg30
The following packages will be REMOVED:
  libcompress-raw-zlib-perl
0 packages upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
Need to get 0B of archives. After unpacking 319kB will be freed.
The following packages have unmet dependencies:
  libio-compress-zlib-perl: Depends: libcompress-raw-zlib-perl (>= 2.008) but it is not installable
Resolving dependencies…
The following actions will resolve these dependencies:

Remove the following packages:
apparmor-utils
libcompress-zlib-perl
libio-compress-zlib-perl
libmp3-tag-perl
librpc-xml-perl
libwww-perl
libxml-parser-perl
ubuntu-standard

Score is 592

Accept this solution? [Y/n/q/?]

Make a note of the packages that it will remove, then tell it to go ahead. It will remove these packages!

Start cpan, and type in

install Bundle::CPAN

. When it is complete, reinstall the ubuntu packages that you removed earlier (for example):

# aptitude install apparmor-utils libcompress-zlib-perl libio-compress-zlib-perl libmp3-tag-perl librpc-xml-perl libwww-perl libxml-parser-perl ubuntu-standard

That’s it. Your cpan is working again :)

Powered by WordPress | Theme: Motion by 85ideas.