Category: Perl

4 posts · RSS · all posts

2007

LWP::ConnCache::Resolving

I wrote a simple extension to LWP::ConnCache, which allows to somehow resolve keys before putting connections into cache. Task is not very obvious until you understand that http://www.example.com/ and http://example.com/ are the same server and there is no need to open two connections if you want to get data from both sites. Moreover http://*.livejournal.com and…

2006

Fixed multiple tags bug in XML::RSS::LibXML

I fixed annoying bug in XML::RSS::LibXML which rendered multiple tags as one tag with value of ARRAY(…). It was most often seen when multiple categories were assigned to feed item but affected all duplicate tags (I fixed similar problem specifically with enclosures earlier). Hope that will not break feeds any more.

Links are absolutized now

Now links in descriptions are being absolutized relative to original feed URL upon fetching. This is supposed to fix missing images and broken links which are caused by feed item being moved from original feed (preprocessed feed, then friends feed and so on). I wrote perl class that allows changing all links in HTML code…

Perl & TimeZones

I had to add DateTime::TimeZone::Alias->set( MSK => 'Europe/Moscow' ); to the code cause MSK is not recognized by DateTime::TimeZone module be dafault. More stuff to research: list of timezones – http://www.worldtimezone.com/wtz-names/timezonenames.html list of available Perl modules: http://datetime.perl.org/?Modules

Browse the blog

Categories

Archives