home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5888 < prev    next >
Encoding:
Internet Message Format  |  1992-09-12  |  954 b 

  1. Path: sparky!uunet!olivea!spool.mu.edu!sdd.hp.com!apollo.hp.com!cupnews0.cup.hp.com!scd.hp.com!hplextra!hpcc05!hpscit!kc
  2. From: kc@hpscit.sc.hp.com (Kwok Cheung)
  3. Newsgroups: comp.lang.perl
  4. Subject: Question on Camel Book
  5. Message-ID: <48220001@hpscit.sc.hp.com>
  6. Date: 11 Sep 92 20:50:25 GMT
  7. Organization: Hewlett-Packard, Santa Clara, CA
  8. Lines: 22
  9.  
  10.  
  11.     I am fairly new on perl and have use awk and sed for
  12. a long time. I have a question in regard to the camel book.
  13. On p.259 the nfinger program, can any one explain what is the
  14. meaning of the following line.
  15.  
  16. exec 'finger', @fingerargs, @finger if @finger;
  17.  
  18. The last part is the one I have problem in trying to understand
  19.  
  20.  @finger if @finger
  21.  
  22. when I run it with the full line, it just return with
  23.  
  24. Couldn't run finger:
  25.  
  26. Even I specific the full path to finger '/usr/bin/finger"
  27. But when I delete the last 3 word
  28.  
  29. exec 'finger', @fingerargs;
  30.  
  31. The nfinger run, but I cannot pass on the logon to the program.
  32.