As it's of relevance to QA (by way of testing), I wanted to let folks know that I have recently put LWP::UserAgent::Mockable onto CPAN. This allows easy mocking of LWP by permitting LWP sessions to be recorded to file, and later played back. Normal behaviour (no modifying of requests/responses) is a 2-line change to any unittest file, and specifying (via env vars) the mode to run in (record|playback|passthrough) and the data dump file to use.
The impetus for this module was to avoid failures in unittests doing requests out to external systems, due to the remote systems being down or intermittant, which was quite common for my current contract. Failures in daily unittest runs are no longer ignored, as we are now sure they're failures in our system, rather than the previous case, where one of the 3 remote systems we were interacting with were doing upgrades/data imports/etc. Any comments/criticisms of this module are welcome. Take care, Mark.