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

  1. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!darwin.sura.net!mlb.semi.harris.com!travis!grouper!amber!tom
  2. From: tom@ssd.csd.harris.com (Tom Horsley)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: How to convice awk/sed users to use Perl ?
  5. Message-ID: <TOM.92Sep9124759@amber.ssd.csd.harris.com>
  6. Date: 9 Sep 92 17:47:59 GMT
  7. References: <1992Sep9.143629.13571@cbfsb.cb.att.com>
  8. Sender: news@grouper.mkt.csd.harris.com (Network News)
  9. Organization: Harris Computer Systems Division
  10. Lines: 39
  11. In-Reply-To: swu@att.com's message of 9 Sep 92 14:36:29 GMT
  12.  
  13. >>>>> Regarding How to convice awk/sed users to use Perl ?; swu@att.com (Chi-Sharn Wu) adds:
  14. swu> Originator: news@cbnewsb.cb.att.com
  15. swu> Nntp-Posting-Host: jolt.mt.att.com
  16.  
  17. swu> As a Perl beginner, I don't know how to answer the following question
  18. swu> raised by my colleagues:
  19. swu>    I use ksh/awk/sed very well, why bother to spend a lot of time to
  20. swu>    learn Perl ?  What's the real advantages of perl over ksh/awk/sed ?
  21.  
  22. swu> I will appreciate any help.
  23.  
  24. swu> ---
  25.  
  26. swu> Chi-Sharn Wu
  27. swu> swu@probe.att.com
  28.  
  29. The first time you have 'sed' or 'awk' tell you something like: "Expression
  30. too complicated" or "too many files" or "array too big" you will figure out
  31. why you need to use perl instead.
  32.  
  33. Typically, these problems crop up after you have had a sed or awk script in
  34. dialy production use for six months to a year, then it suddenly fails
  35. because you have overloaded some stupid internal limit, then you are totally
  36. screwed and have to do a rewrite working around whatever limit you hit (if
  37. you can figure out what it was). This is the most fun when the person
  38. who originally wrote the script has left town :-).
  39.  
  40. If you use perl to start with, you don't run into nearly as many silly
  41. limits (although I have heard rumors of stuff like regular expressions
  42. bigger than 32K giving it heartburn). Mostly, if you have the available
  43. memory, perl will not impose any other limits.
  44. --
  45. ======================================================================
  46. domain: tahorsley@csd.harris.com       USMail: Tom Horsley
  47.   uucp: ...!uunet!hcx1!tahorsley               511 Kingbird Circle
  48.                                                Delray Beach, FL  33444
  49. +==== Censorship is the only form of Obscenity ======================+
  50. |     (Wait, I forgot government tobacco subsidies...)               |
  51. +====================================================================+
  52.