home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5707 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  728 b 

  1. Path: sparky!uunet!gatech!destroyer!gumby!wupost!usc!news!netlabs!lwall
  2. From: lwall@netlabs.com (Larry Wall)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: how to get passwd
  5. Message-ID: <1992Sep3.184343.12651@netlabs.com>
  6. Date: 3 Sep 92 18:43:43 GMT
  7. References: <23093@hacgate.SCG.HAC.COM> <ASHERMAN.92Sep2110720@laser.fmrco.com>
  8. Sender: news@netlabs.com
  9. Distribution: usa
  10. Organization: NetLabs, Inc.
  11. Lines: 6
  12. Nntp-Posting-Host: scalpel.netlabs.com
  13.  
  14. How many times a month are you going to be doing this?  1928347 times?
  15. 100 times?  3 times?  How 'bout:
  16.  
  17.     $uid = (split(/:/, `tail -1 /etc/passwd`))[2];
  18.  
  19. Yes, you've got a Swiss Army Chainsaw.  It's not required, even in the
  20. Swiss Army, that you open your marmelade with it.
  21.  
  22. Larry
  23.