brayk1990 has asked for the wisdom of the Perl Monks concerning the following question:
I know that with one file open I can easily go through it by looping like this:open( FILE1, "path here" ); open( FILE2, "path here" ); open( FILE3, "path here" );
So a more precise version of my question is whether or not I can do something like that while loop but with lots of files? Any help would be appreciated.while( $lines = <FILE1> ) { "Do fun stuff here" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: replacing text in multiple files
by aaron_baugher (Curate) on Apr 13, 2012 at 22:07 UTC | |
|
Re: replacing text in multiple files
by Eliya (Vicar) on Apr 13, 2012 at 22:03 UTC | |
|
Re: replacing text in multiple files
by graff (Chancellor) on Apr 14, 2012 at 02:49 UTC | |
by Eliya (Vicar) on Apr 14, 2012 at 04:43 UTC | |
|
Re: replacing text in multiple files
by Anonymous Monk on Apr 13, 2012 at 22:23 UTC | |
by Anonymous Monk on Apr 14, 2012 at 00:12 UTC | |
by Anonymous Monk on Apr 14, 2012 at 02:35 UTC | |
|
Re: replacing text in multiple files
by Anonymous Monk on Apr 14, 2012 at 02:36 UTC | |
|
Re: replacing text in multiple files
by brayk1990 (Novice) on Apr 16, 2012 at 16:24 UTC |