From: David Vallner Date: 2006-10-06T06:49:58+09:00 Subject: Re: 1st program -- how would you improve this? --------------enigA6EB6D28A0F0C3339CE66AE7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'd probably have used OpenURI and then text =3D open('http://www.example.com/').read which I find a little more readable. Oh, and probably also a HTML parser like Hpricot to make getting the title tag more foolproof. I also strongly disapprove of the Perl-ish use of global variables that get set as a side-effect of a regex match. Notably because that's a) relying on a side-effect of a function on b) a global variable. But coding everything explicitly is a personal pet peeve of mine. David Vallner --------------enigA6EB6D28A0F0C3339CE66AE7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD4DBQFFJX4Gy6MhrS8astoRAotyAJdV+x2/G7GKUEec9wTwdJHkWwzbAJ4qkHq/ iWyBrjiMynIk03lUQPXGEw== =GZOx -----END PGP SIGNATURE----- --------------enigA6EB6D28A0F0C3339CE66AE7--