[Bioperl-l] Bio::Root::IO reads URLs from -file

Hilmar Lapp hlapp at gmx.net
Mon Aug 9 11:42:19 EDT 2004

I lean with Ewan to -url as I like explicit commands better than 
possibly dubious magic behind the scenes ... imagine someone stores 
files by names that match their url ...

There's one thing though that's important IMO that Jason brings up: I 
don't know how you implemented this but I think Bio::Root::IO must not 
be dependent on LWP or any such beast that doesn't come with perl.


On Sunday, August 8, 2004, at 12:28  AM, Allen Day wrote:

> just commited this to cvs.  if you pass a -file arg to a Root::IO
> subclass, the following happens:
> if(the file exists){
>   do as before
> }
> elsif(the file doesn't exist, and the name looks like a url) {
>   try a few times to {
>     download the url to a local tempfile, and update -file to point
>     to the tempfile
>   }
>   if(couldn't download the file){
>     throw an error
>   }
> }
> i'm open to moving urls to a special -url argument instead of 
> overloading
> -file.  what do people think?
> -allen
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l
Hilmar Lapp                            email: lapp at gnf.org
GNF, San Diego, Ca. 92121              phone: +1-858-812-1757

More information about the Bioperl-l mailing list