home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / perl / lsearch.al < prev    next >
Encoding:
Text File  |  2004-02-15  |  396 b   |  20 lines

  1. # NOTE: Derived from blib\lib\Tk.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Tk;
  5.  
  6. #line 772 "blib\lib\Tk.pm (autosplit into blib\lib\auto\Tk\lsearch.al)"
  7. sub lsearch
  8. {my $ar = shift;
  9.  my $x  = shift;
  10.  my $i;
  11.  for ($i = 0; $i < scalar @$ar; $i++)
  12.   {
  13.    return $i if ($$ar[$i] eq $x);
  14.   }
  15.  return -1;
  16. }
  17.  
  18. # end of Tk::lsearch
  19. 1;
  20.