This script fetches a list of available newsgroups (and descriptions) from a news server. The group list is returned as a hashref where the keys are the groupname and the value is a description of the group. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 [...]
Posts Tagged perl
Parsing RSS feeds
Apr 8
del.icio.us is a neat service for managing an online bookmark collection. With a little bit of Perl and a few CPAN modules, you can fetch your most recent bookmarks and include them as links on your homepage. The sample script could be used in a cronjob and creates a file on you local server. It [...]
IP addresses in Perl
Apr 8
With Perl you can do many interesting transformations of IP-numbers. Below is two small examples allowing conversions from “IP quad” (xxx.xxx.xxx.xxx) format to a single decimal and back. 1 2 3 4 5 6 7 sub ip2dec ($) { return unpack N => pack CCCC => split /\./ => shift; } sub dec2ip ($) [...]