• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

10. Unconventional Feeds > 10.2. Code TODOs to RSS

Code TODOs to RSS

I live by my to-do list. Without it, I’d be a drippy mess of procrastination, and you wouldn’t be reading this book right now. It’s good to be organized, and especially so with code. Working on the scripts and chapters in this book, I’ve started to leave messages to myself within them. I mark these out as a new line starting with TODO:.

I then have this script run over all of my working directories, parsing each file and looking for those lines. The result is a nice to-do list in my reader application and a morning’s work all set out.

Walking Through the Code

We’ll do the usual start, with strict;, warnings;, CGI and XML::RSS. Let’s use the File::Find module to do the directory-traversing:

use strict;
use warnings;
use XML::RSS;
use CGI qw(:standard);
use File::Find;

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint