Tue, 2009-10-13 22:35

Okay, so I'm trying to write a little script to check TCM's schedule a couple times a month and let me know if there is anything on it that I might want to check out.

I looked into doing this with Perl, and I found the LWP and LWP::Simple module, but it seems not to work as advertised.

For instance, this:

>perl -MLWP::Simple -e 'getprint "http://www.sn.no/"'

is supposed to return the source of the index file at www.sn.no. Instead, it returns nothing.

Now I know things are actually working pretty well, since it I do the same with a text file (rather than an html file) like this:

>perl _MLWP::Simple -e 'getprint "http://www.madandmoonly.com/doctormatt/mathematics/squares/rezz01.txt"'

it spews that text file all over standard out.

I'm stumped.