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

Ewan Birney birney at ebi.ac.uk
Sun Aug 8 10:53:47 EDT 2004



On Sun, 8 Aug 2004, 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?

I think this sounds safer ---- but then again this sort of magic is much
appreciated by newbies/lazy coders. I don't have a strong opinion I
guess...


>
> -allen
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l
>



More information about the Bioperl-l mailing list