[EMAIL PROTECTED] wrote: > > Hi John, Hello,
> Thanks as usual ... what is UUOC? http://www.justfuckinggoogleit.com/search?query=UUOC > Am getting more intrigue and confused with your short-cuts coding .... > but it is fun though ... > > These two lines here, are you creating a hash? No. > Then you are searching for match on the word developer and assign that > gcos, then increment $num_of_developers at the same time? The [6] means > to search on the sixth field which normally is the Comment field of the > /etc/passwd? [6] means the seventh field, indexes start at zero. On the command line enter: man 5 passwd Which will explain what the GCOS field of /etc/passwd is and it is probably the field you want to search for 'developer' in. > my ( $gcos, $num_of_developers ); > $gcos =~ /developer/ && $num_of_developers++ while $gcos = (getpwent)[6]; > > Didn't know there is perldoc -f system, or that I can do perldoc -f, > sorry ... thought I can only for modules as in perldoc Config ... perldoc perldoc John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>