in reply to A Tagcloud For Cory Doctorow

I just read Cory's article about this and had to try it out. Looks great! I've seen these tag clouds used a few times before without having any idea what they were supposed to be. One question: is there any way to have it reread the "notes" file periodically without having to stop/start the script? For the curious, the article is located at http://www.locusmag.com/Perspectives/2009/05/cory-doctorow-extreme-geek.html

Replies are listed 'Best First'.
Re^2: A Tagcloud For Cory Doctorow
by McD (Chaplain) on May 10, 2009 at 18:55 UTC
    One question: is there any way to have it reread the "notes" file periodically without having to stop/start the script?

    Sure. There are two changes needed: replace the "while (<>) ..." with more robust file handling, and add some code to re-read the file(s) provided when they change.

    Not huge changes, but I guess I didn't envision this being a particularly long-lived script. I was thinking more start it up, work for a few hours, shut it down.