home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5831 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.7 KB  |  56 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!mmdf
  3. From: Al Gaspar <gaspar@stepsun.army.mil>
  4. Subject: Re: How to convice awk/sed users to use Perl ? 
  5. Message-ID: <1992Sep10.120901.25673@uvaarpa.Virginia.EDU>
  6. Sender: mmdf@uvaarpa.Virginia.EDU (Mail System)
  7. Reply-To: gaspar@stepsun.army.mil
  8. Organization: The Internet
  9. Date: Thu, 10 Sep 1992 12:09:01 GMT
  10. Lines: 44
  11.  
  12.  
  13. |As a Perl beginner, I don't know how to answer the following question raised b
  14. |y my
  15. |colleagues:
  16. |   I  use ksh/awk/sed very well, why bother to spend a lot of time to learn Pe
  17. |rl ?
  18. |   What's the real advantages of perl over ksh/awk/sed ?
  19. |
  20. |I will appreciate any help.
  21. |
  22. |---
  23. |
  24. |Chi-Sharn Wu
  25. |swu@probe.att.com
  26. |
  27.  
  28.     I would suggest that process overhead and speed might be considerations.
  29. In the September 1992 issue of "Unix Review" there was an article including
  30. and discussing an awk/sed/shell script to analyze bourne shell scripts.  Mostly
  31. out of curiosity, I 'translated' that script to perl, without any particular
  32. thought on the best optimizations, and came up with a one pass perl script that
  33. worked at twice the speed as the original script without piping anything to
  34. subprocesses.
  35.  
  36.     I find that perl is great for quickly producing demonstrations of concepts
  37. that might later be rewritten in C.
  38.  
  39.     There is source code available.
  40.  
  41.     When I have a question I pull down one book rather than three.
  42.  
  43.     There are JAPHs...
  44.  
  45.     I hope this helps.
  46.  
  47. Cheers--
  48.  
  49. Al
  50.  
  51. -- 
  52. Al Gaspar    <gaspar@st-louis-emh2.army.mil>
  53. USAMC SIMA, ATTN:  AMXSI-TTC, 1222 Spruce St., St. Louis, MO  63103-2834
  54. COMMERCIAL:  (314) 331-4354    AUTOVON:  555-4354
  55. relay1.uu.net!st-louis-emh2.army.mil!gaspar
  56.