[EMAIL PROTECTED] wrote: > > Hello, Hello,
> My question is most likely not unique. I just have not been able to find > the solution on my own. > > I would like to read lines of text from a file into an array, and perform > some action on each line. > ****************************** > Something like: > FileA contains a list of absolute paths (/opt/web/someDir/some-other-Dir) > Perl script B would read in the lines from FileA and place them into an > array. > > Then perl script B would use each element in the array to > A. move to that directory perldoc -f chdir > B. read in the contents of the dir perldoc -f opendir perldoc -f readdir > C. perform an action on each line read in perldoc -f open perldoc perlopentut perldoc perlfunc perldoc perlre perldoc perlop > D. Loop to the next array element and continue perldoc perlsyn > ********************************* > If this makes no sense I understand, but if someone out there has any ideas > on how I can make this happen, please email me. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]