Re: CGI URLs in HREFs (was Re: An smtp URL scheme)

 >    if ($fields > 1) {
 >       $eqstr = @eqarr[1];
 >       $amptot = scalar(split(/&/,$eqstr)) - 1;
 >       $semtot = scalar(split(/;/,$eqstr)) - 1;
 >       if ($semtot && $semtot > $amptot) {
 >          $sep = ';';
 >          }
 >       }
 >    @query = split($sep,$query);

Or to be a bit safer:

   if ($fields > 1) {
      $eqstr = @eqarr[1];
      $amptot = scalar(split(/&/,$eqstr)) - 1;
      $semtot = scalar(split(/;/,$eqstr)) - 1;
      if ($semtot && $semtot > $amptot) {
         $sep = ';';
         }
      @query = split($sep,$query);
      }
   else {
      @query = ($query);
      }

__________________________________________________________________________
  Walter Ian Kaye <boo_at_best*com>    Programmer - Excel, AppleScript,
          Mountain View, CA                         ProTERM, FoxPro, HTML
 http://www.natural-innovations.com/     Musician - Guitarist, Songwriter

Received on Sunday, 13 July 1997 04:59:20 UTC