Skip Menu |

This queue is for tickets about the LWP-UserAgent-WithCache CPAN distribution.

Report information
The Basics
Id: 41430
Status: resolved
Priority: 0/
Queue: LWP-UserAgent-WithCache

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.06
Fixed in: (no value)



Subject: Breaks (sort of) on Windows because of $ENV{HOME}
LWP::UserAgent::WithCache appears to be highly useful, however it is currently not cross-platform because $ENV{HOME} does not exist on all platforms. Would you consider changing $ENV{HOME} to File::HomeDir->my_home to get a more cross-platform version of a home directory. This should be back-compatible, because File::HomeDir will preferentially use $ENV{HOME}, if it exists.
I note it should also be using File::Spec for path manipulation... On Thu Dec 04 11:39:41 2008, ADAMK wrote: Show quoted text
> LWP::UserAgent::WithCache appears to be highly useful, however it is > currently not cross-platform because $ENV{HOME} does not exist on all > platforms. > > Would you consider changing $ENV{HOME} to File::HomeDir->my_home to get > a more cross-platform version of a home directory. > > This should be back-compatible, because File::HomeDir will > preferentially use $ENV{HOME}, if it exists.
Thank you for the suggestion to use File::HomeDir. I've fixed that in 0.09. Actually, I myself prefer to use URI::Fetch, which has better features of caching contents, but your advices are really appreciated.