On lör, 2004-10-09 at 14:53, Randal L. Schwartz wrote: > >>>>> "Mattias" == Mattias Holmlund <[EMAIL PROTECTED]> writes: > Mattias> The only advantage I can see with doing initialization via the use-line > Mattias> is to avoid a single line of code for each program that uses > Mattias> HTTP::TransparentCache. > > I'd like to be able to go from: > > perl myprogram > > to > > perl -MHTTP::TransparentCache myprogram > > and see the instant difference. If I have to add more code, > it'll be far less fun. I can even set >
So THAT'S what you wanted to do. I didn't realize that, we only ever talked about the "use HTTP::TransparentCache qw/.../" scenario. That makes sense. I'll support that kind of syntax in the next version. But I think it will have to be perl '-MHTTP::TransparentCache qw(BasePath /tmp/cache)' yourscript.pl /Mattias