home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7533 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.0 KB  |  30 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!news.cerf.net!netlabs!lwall
  3. From: lwall@netlabs.com (Larry Wall)
  4. Subject: Re: In search of good idioms.
  5. Message-ID: <1992Dec17.212650.22416@netlabs.com>
  6. Sender: news@netlabs.com
  7. Nntp-Posting-Host: scalpel.netlabs.com
  8. Organization: NetLabs, Inc.
  9. References: <BzCw1H.H24@NeoSoft.com>
  10. Date: Thu, 17 Dec 1992 21:26:50 GMT
  11. Lines: 17
  12.  
  13. In article <BzCw1H.H24@NeoSoft.com> claird@NeoSoft.com (Cameron Laird) writes:
  14. : The natural expressions of this problem involve an
  15. : abstract data type, "collection of (sub)permutations",
  16. : or its proceduralization by way of a parametrized re-
  17. : cursion.
  18.  
  19. Uh, did I just hear you say something about "natural"?
  20.  
  21. :-)
  22.  
  23. Definitional problems are generally better solved in a functional
  24. language, but Perl can pass lists around and do recursion, and can
  25. emulate sets with associative arrays, for what it's worth.  You can
  26. also do rudimentary data hiding with packages.  If you want more
  27. abstraction than that, you have to wait for Perl 5.
  28.  
  29. Larry
  30.