home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / perl / 7984 < prev    next >
Encoding:
Text File  |  1993-01-25  |  926 b   |  26 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!digibd!vince
  3. From: vince@digibd.com (Vince Mar)
  4. Subject: Help Beginner
  5. Organization: DigiBoard Incorporated, Eden Prairie, MN
  6. Date: Mon, 25 Jan 1993 22:42:26 GMT
  7. Message-ID: <1993Jan25.224226.15695@digibd.com>
  8. Lines: 16
  9.  
  10. Hi pros:
  11.  
  12. This may be the FAQ but I really need someone's help.
  13.  
  14. If a line of text data contains vary fields, say range from 4 to 32, what is
  15. the easiest way to get every field.  Any way similar to UNIX set command to
  16. get $1..$n?  For example: a line contains "Thu Jan 21 1993  21:22:00", I 
  17. suppose can use splite to know number of fields, but then how to use "for" or
  18. "while" loop to get each field assign to other variables?
  19.  
  20. Any help will be appreciated.
  21. -- 
  22. Vincent Mar   vince@digibd.com                  
  23. DigiBoard, Digi International Inc.              
  24. 6400 Flying Cloud Drive       Tel: (612)943-9020
  25. Eden Prairie, MN 55344        Fax: (612)943-0803
  26.