You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@hyperreal.org on 1998/10/09 16:27:43 UTC

cvs commit: apache-site/dyn closer.cgi

brian       98/10/09 07:27:42

  Modified:    dyn      closer.cgi
  Log:
  should split on any whitespace, not just tabs.  Also, don't display entries
  that are commented out.
  
  Revision  Changes    Path
  1.6       +2 -1      apache-site/dyn/closer.cgi
  
  Index: closer.cgi
  ===================================================================
  RCS file: /home/cvs/apache-site/dyn/closer.cgi,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- closer.cgi	1997/07/02 11:10:05	1.5
  +++ closer.cgi	1998/10/09 14:27:42	1.6
  @@ -24,8 +24,9 @@
       $count = 0;
       while(<MIRRORS>)
       {
  +	next if (/^#/, $_);
   	chomp;
  -	@AR = split (/\t/, $_);
  +	@AR = split (/\s/, $_);
   	if(($cc eq $AR[1] || $sld.".".$tld eq $AR[1]) && $AR[0] eq $method)
   	{
   	    $LIST[$count] = $AR[2];
  
  
  

Re: cvs commit: apache-site/dyn closer.cgi

Posted by Brian Behlendorf <br...@hyperreal.org>.
At 06:54 PM 10/12/98 -0400, Rodent of Unusual Size wrote:
>brian@hyperreal.org wrote:
>> 
>> brian       98/10/09 07:27:42
>> 
>>   Modified:    dyn      closer.cgi
>>   Log:
>>   should split on any whitespace, not just tabs.
>
>Erm, no.  The requirement for TAB is in there so the
>description/location field can contain whitespace and
>be trated as a single token.

That's handled.

	Brian


--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
Where will YOU be Oct 14-16?                   |     brian@apache.org
ApacheCon '98!   http://www.apachecon.com/     |  brian@hyperreal.org


Re: cvs commit: apache-site/dyn closer.cgi

Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
brian@hyperreal.org wrote:
> 
> brian       98/10/09 07:27:42
> 
>   Modified:    dyn      closer.cgi
>   Log:
>   should split on any whitespace, not just tabs.

Erm, no.  The requirement for TAB is in there so the
description/location field can contain whitespace and
be trated as a single token.

#ken	P-)}

Ken Coar                    <http://Web.Golux.Com/coar/>
Apache Group member         <http://www.apache.org/>
"Apache Server for Dummies" <http://WWW.Dummies.Com/