On Sat, Aug 09, 2003 at 08:57:54PM -0700, Gupta, Sharad wrote: >> You're supposed to return a filehandle: > > Yep. But i am using the temp files for doing that. And i > would love to get rid of the temp files altogether. > >> open my $fh, '<', \($response->content); > > Seems like we are opening a filehandle to a string. Very > difficult to convince my sysadmin to get to 5.8 soon. Any > other suggestions to get rid of those temp files. I hate > them.
IO::Stringy (non-core module) was the old way to do it... >> I'd also suggest caching the downloaded modules > > Give me a little of your magical sight -:) It's not secure, but in a safe environment you could write $res->content to some cache directory. Then before downloading anything, just check the cache. >> And by the way, does anybody know offhand why the subroutine >> name needs to be fully-qualified in the declaration? > > Require says: > > Note that you must fully qualify the sub's name, as it is > always forced into package main. Yeah, that seems strange. I suppose that *INC is "special", for the sake of %INC and @INC... But I didn't expect it to force the subroutine declaration into main:: as well. -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]