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

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!fmrco!fmrco!asherman
  3. From: asherman@laser.fmrco.com (Aaron Sherman)
  4. Subject: Re: How to convice awk/sed users to use Perl ?
  5. In-Reply-To: folta@cs.umd.edu's message of 9 Sep 92 23:08:42 GMT
  6. Message-ID: <ASHERMAN.92Sep10123512@laser.fmrco.com>
  7. Sender: news@fmrco.uucp
  8. Reply-To: asherman@fmrco.COM
  9. Organization: I-Kinetics, 19 Bishop-Allen Dr., Cambridge, MA
  10. References: <1992Sep9.143629.13571@cbfsb.cb.att.com> <60213@mimsy.umd.edu>
  11. Distribution: na
  12. Date: Thu, 10 Sep 1992 17:35:12 GMT
  13. Lines: 27
  14.  
  15.  
  16. >>>>> folta@cs.umd.edu (Wayne Folta) said:
  17.  
  18. >   I use ksh/awk/sed very well, why bother to spend a lot of time to
  19. >   learn Perl ?  What's the real advantages of perl over ksh/awk/sed
  20. >   ?
  21. >
  22.  
  23. folta>    2. Shells do not compile their scripts at runtime, but
  24. folta> instead run through them repeatedly. This makes shell scripts
  25. folta> slower and also creates the possibility of run-time syntax
  26. folta> errors. You don't find these errors until your logic flow takes
  27. folta> you through the erroneous path. Since perl compiles its
  28. folta> scripts, if you get it to run at all, you won't encounter a
  29. folta> syntax error later. And perl is *fast*.
  30.  
  31. Well, you can get run-time errors from eval, but they are "polite"
  32. (non-fatal to the top-level interpreter) errors that can be trapped.
  33.  
  34.  
  35.             -AJS
  36.  
  37. --
  38. --------
  39. Disclaimer: I am solely responsible for the content of this message.
  40. The views expressed here may not be the views of I-Kinetics, Fidelity,
  41. any of the Fidelity-owned corporations or my mother.
  42.