maikelnight has asked for the wisdom of the Perl Monks concerning the following question:
my @textfiles = (); @textfiles = glob("*.txt"); foreach my $textfile (@textfiles){ open ( my $inf_fh, '<', $textfile ) or die "Can't open $textfile $ +!\n"; while (<$inf_fh>) { unless (1.../^Something/) { print $_; } } close($inf_fh); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get Text at position from many files (While/Unless)
by choroba (Cardinal) on Sep 28, 2018 at 19:43 UTC | |
by maikelnight (Sexton) on Sep 28, 2018 at 20:46 UTC |