home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!mimsy!folta
- From: folta@cs.umd.edu (Wayne Folta)
- Newsgroups: comp.lang.perl
- Subject: Feature request for perl V
- Message-ID: <62887@mimsy.umd.edu>
- Date: 17 Dec 92 00:42:36 GMT
- Sender: news@mimsy.umd.edu
- Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
- Lines: 13
-
- Could grep have an added option/mode that would allow me to get an array
- of indices instead of an array of items? I want to read a file into an
- array, then do some greps in the array, some calculations, and then if
- everything is right, make a couple of changes in the array, then write it
- back out to the file. If I could do this:
-
- @line_numbers = grepi (/IN A/, @lines) ;
-
- I'd be pretty happy. How's it sound?
- --
-
-
- Wayne Folta (folta@cs.umd.edu 128.8.128.8)
-