Re: Perl question / filling arrays from a system command

by David Mintz <mambomintz(at)yahoo.com>

 Date:  Wed, 7 Feb 2001 12:03:29 -0800 (PST)
 To:  hwg-languages(at)hwg.org
 In-Reply-To:  mitre
  todo: View Thread, Original

> > 
> > I also need to strip off the path from the lines
> returned, I only want the
> > filenames and I need them put into an array for
> use later in the program.
> > 

You could also chdir into the directory before calling
grep, so there would be no extra stuff to strip away.

David Mintz
Spanish Interpreter, US District Court
Southern District of New York
Web Design & Hosting http://dmintzweb.com/
Personal http://panix.com/~dmintz/



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA