home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5571 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1017 b 

  1. Path: sparky!uunet!olivea!inews.Intel.COM!inews.intel.com!smothers
  2. From: smothers@seaview.mcd.intel.com (Charles Smothers ~)
  3. Newsgroups: comp.lang.perl
  4. Subject: help - range passed via ARGV
  5. Message-ID: <SMOTHERS.92Aug27182321@seaview.mcd.intel.com>
  6. Date: 28 Aug 92 02:23:21 GMT
  7. Sender: news@nntp-sc.Intel.COM (USENET News System)
  8. Distribution: comp.lang.perl
  9. Organization: Memory Components Division
  10. Lines: 17
  11. Nntp-Posting-Host: seaview
  12.  
  13. I know this was posted about a month ago, could someone mail
  14. me some of the replys.  Here is the question:
  15.  
  16. I need to expand a range that is passed via ARGV.  A simple
  17. program that will do the following will give me the help
  18. I need:
  19. % myprog 1..3 7 10..12     <- command line
  20. 1 2 3 7 10 11 12           <- output
  21. %
  22.  
  23. Thanks,
  24.  - Charles
  25. --
  26. --------------------------------------------------------------
  27. Charles Smothers      (916)351-5359     smothers@mcd.intel.com
  28.         The address is Intel's, the words are mine.
  29. --------------------------------------------------------------
  30.