As of August 31st, Twitter no longer supports Basic Authentication.
Both Net::Twitter and Net::Twitter::Lite support OAuth, so it should be
a fairly easy switch. This might help:
Net::Twitter OAuth example
Also, see the examples directory in the Net::Twitter and ::Lite distributions.
You should subscribe to the Twitter Announcement List:
Twitter API Announce List
This change was announced months in advance and discussed heavily before the change became effective.