home *** CD-ROM | disk | FTP | other *** search
- 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
- From: tom@ssd.csd.harris.com (Tom Horsley)
- Newsgroups: comp.lang.perl
- Subject: Re: How to convice awk/sed users to use Perl ?
- Message-ID: <TOM.92Sep9124759@amber.ssd.csd.harris.com>
- Date: 9 Sep 92 17:47:59 GMT
- References: <1992Sep9.143629.13571@cbfsb.cb.att.com>
- Sender: news@grouper.mkt.csd.harris.com (Network News)
- Organization: Harris Computer Systems Division
- Lines: 39
- In-Reply-To: swu@att.com's message of 9 Sep 92 14:36:29 GMT
-
- >>>>> Regarding How to convice awk/sed users to use Perl ?; swu@att.com (Chi-Sharn Wu) adds:
- swu> Originator: news@cbnewsb.cb.att.com
- swu> Nntp-Posting-Host: jolt.mt.att.com
-
- swu> As a Perl beginner, I don't know how to answer the following question
- swu> raised by my colleagues:
- swu> I use ksh/awk/sed very well, why bother to spend a lot of time to
- swu> learn Perl ? What's the real advantages of perl over ksh/awk/sed ?
-
- swu> I will appreciate any help.
-
- swu> ---
-
- swu> Chi-Sharn Wu
- swu> swu@probe.att.com
-
- The first time you have 'sed' or 'awk' tell you something like: "Expression
- too complicated" or "too many files" or "array too big" you will figure out
- why you need to use perl instead.
-
- Typically, these problems crop up after you have had a sed or awk script in
- dialy production use for six months to a year, then it suddenly fails
- because you have overloaded some stupid internal limit, then you are totally
- screwed and have to do a rewrite working around whatever limit you hit (if
- you can figure out what it was). This is the most fun when the person
- who originally wrote the script has left town :-).
-
- If you use perl to start with, you don't run into nearly as many silly
- limits (although I have heard rumors of stuff like regular expressions
- bigger than 32K giving it heartburn). Mostly, if you have the available
- memory, perl will not impose any other limits.
- --
- ======================================================================
- domain: tahorsley@csd.harris.com USMail: Tom Horsley
- uucp: ...!uunet!hcx1!tahorsley 511 Kingbird Circle
- Delray Beach, FL 33444
- +==== Censorship is the only form of Obscenity ======================+
- | (Wait, I forgot government tobacco subsidies...) |
- +====================================================================+
-