home *** CD-ROM | disk | FTP | other *** search
/ Chip: Windows 2000 Professional Resource Kit / W2KPRK.iso / apps / perl / ActivePerl.exe / data.z / getgroups.al < prev    next >
Encoding:
Text File  |  1999-10-16  |  367 b   |  15 lines

  1. # NOTE: Derived from ..\..\lib\POSIX.pm.
  2. # Changes made here will be lost when autosplit again.
  3. # See AutoSplit.pm.
  4. package POSIX;
  5.  
  6. #line 856 "..\..\lib\POSIX.pm (autosplit into ..\..\lib\auto/POSIX/getgroups.al)"
  7. sub getgroups {
  8.     usage "getgroups()" if @_ != 0;
  9.     my %seen;
  10.     grep(!$seen{$_}++, split(' ', $) ));
  11. }
  12.  
  13. # end of POSIX::getgroups
  14. 1;
  15.