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

  1. Path: sparky!uunet!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!texsun!wb9rxw!kf5iw!cmptrc!carter
  2. From: carter@cmptrc.lonestar.org (Carter Bennett)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: How to convice awk/sed users to use Perl ?
  5. Summary: A look at Johan's referece card should do it.
  6. Message-ID: <BuDDrI.Dn6@cmptrc.lonestar.org>
  7. Date: 10 Sep 92 15:59:42 GMT
  8. References: <1992Sep9.143629.13571@cbfsb.cb.att.com>
  9. Sender: carter@cmptrc.lonestar.org
  10. Organization: CompuTrac Inc., Richardson TX
  11. Lines: 65
  12.  
  13. In article <1992Sep9.143629.13571@cbfsb.cb.att.com> swu@att.com writes:
  14. >As a Perl beginner, I don't know how to answer the following question 
  15. >raised by my colleagues:
  16. >   I  use ksh/awk/sed very well, why bother to spend a lot of 
  17. >       time to learn Perl ?
  18. >   What's the real advantages of perl over ksh/awk/sed ?
  19. >
  20.  
  21.   I made the switch to ksh/awk/sed because of the large number of useful
  22. operators and functions already defined in Perl.  If you have a copy of
  23. the Camel Book, you likely have a copy of Johan Vromans' Reference Guide.
  24. That's one of the best recruiters I have found!
  25.  
  26.   If someone asks those questions of me, the first thing I show them is the
  27. list of Special Variables.  A clever ksh user will then say, "But most of
  28. those I can get from ksh!"
  29.  
  30.   Once they've mulled that over, I show them the regular expression 
  31. characters, and point out \w, \d, and perhaps one or two others.  Even an 
  32. expert awk or sed user can't say, "We've got all of those."
  33.  
  34.   If they deal with foreign system data conversion at all, I point out the
  35. section on Structure Conversion (pack and unpack).  That alone will get about
  36. ten percent of the hold-outs.
  37.  
  38.   If they're nosey people, I show them how easy it is to call crypt!  That
  39. will get an awful lot of recruits (more than we'd like to believe).
  40.  
  41.    Some folks will then counter with, "Yeah, but Perl isn't on all the 
  42. systems that are out there."   
  43.    And I say, "Well why not?  Thanks to Larry, Perl is FREE!  Perl is easy 
  44. to install!  Why, I have the distribution package right here - have a copy!  
  45. I'll even help you install it!  Now, do you want this on a PC or Unix 
  46. clone?"
  47.  
  48.    Sometimes a suit will say, "Free software?  That means we can't call
  49. for support!"  Then I point out that we have the sourcecode and maybe I'll
  50. show them the latest messages in comp.lang.perl.
  51.    "See the names on these messages?  Larry Wall - Randal Schwartz - Johan
  52. Vromans?  Now look at this book with the camel on it.  And the card that came
  53. with it.  And look at the name on this sourcecode.  Now look at some of the
  54. other messages - and look at the Camel Book's acknowledgements."
  55.  
  56.    By this time, I either have a person who is ready for their first 
  57. tutorial, or one who is ready to go get the Camel Book, or a fellow who 
  58. shakes his head, throws up his arms and walks off.
  59.  
  60.    Of course, many of the best candidates for Perl are the one's who've
  61. never had exposure to awk or sed, and never bothered to do much shell
  62. programming.
  63.  
  64.    Don't get me wrong.  I still use awk and ksh when they are expedient
  65. (which is fine - there's more than one way to do it), but I prefer to 
  66. strengthen my Perl chops when I can.  I'm not taking full advantage of
  67. Perl's resources yet, but have already gotten a heck of a lot out of it.
  68.  
  69.    Good luck with the recruiting.  Your willingness to spend time with the
  70. new initiates will be a key to your success!
  71.  
  72. Cheerio!
  73.  
  74. Carter R. Bennett, Jr. - Scientist      No matter where you go...
  75. carter@scilab.lonestar.org - home                 .../dev/tty!
  76. carter@cmptrc.lonestar.org - work
  77. KI5SR
  78.