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 / FIRSTKEY.al < prev    next >
Encoding:
Text File  |  2003-04-30  |  630 b   |  21 lines

  1. # NOTE: Derived from blib\lib\Config\Simple.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Config::Simple;
  5.  
  6. #line 1476 "blib\lib\Config\Simple.pm (autosplit into blib\lib\auto\Config\Simple\FIRSTKEY.al)"
  7. sub FIRSTKEY {
  8.   my $self = shift;
  9.  
  10.   # we make sure that tied hash is created ONLY if the program
  11.   # needs to use this functionality.
  12.   unless ( defined $self->{_TIED_HASH} ) {    
  13.     $self->{_TIED_HASH} = $self->vars();
  14.   }
  15.   my $temp = keys %{ $self->{_TIED_HASH} };
  16.   return scalar each %{ $self->{_TIED_HASH} };
  17. }
  18.  
  19. # end of Config::Simple::FIRSTKEY
  20. 1;
  21.