home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!mmdf
- From: Al Gaspar <gaspar@stepsun.army.mil>
- Subject: Re: How to convice awk/sed users to use Perl ?
- Message-ID: <1992Sep10.120901.25673@uvaarpa.Virginia.EDU>
- Sender: mmdf@uvaarpa.Virginia.EDU (Mail System)
- Reply-To: gaspar@stepsun.army.mil
- Organization: The Internet
- Date: Thu, 10 Sep 1992 12:09:01 GMT
- Lines: 44
-
-
- |As a Perl beginner, I don't know how to answer the following question raised b
- |y my
- |colleagues:
- | I use ksh/awk/sed very well, why bother to spend a lot of time to learn Pe
- |rl ?
- | What's the real advantages of perl over ksh/awk/sed ?
- |
- |I will appreciate any help.
- |
- |---
- |
- |Chi-Sharn Wu
- |swu@probe.att.com
- |
-
- I would suggest that process overhead and speed might be considerations.
- In the September 1992 issue of "Unix Review" there was an article including
- and discussing an awk/sed/shell script to analyze bourne shell scripts. Mostly
- out of curiosity, I 'translated' that script to perl, without any particular
- thought on the best optimizations, and came up with a one pass perl script that
- worked at twice the speed as the original script without piping anything to
- subprocesses.
-
- I find that perl is great for quickly producing demonstrations of concepts
- that might later be rewritten in C.
-
- There is source code available.
-
- When I have a question I pull down one book rather than three.
-
- There are JAPHs...
-
- I hope this helps.
-
- Cheers--
-
- Al
-
- --
- Al Gaspar <gaspar@st-louis-emh2.army.mil>
- USAMC SIMA, ATTN: AMXSI-TTC, 1222 Spruce St., St. Louis, MO 63103-2834
- COMMERCIAL: (314) 331-4354 AUTOVON: 555-4354
- relay1.uu.net!st-louis-emh2.army.mil!gaspar
-