mjn has asked for the wisdom of the Perl Monks concerning the following question:
I have tried a few different permutations of this which all seem slow and this one, while pretty quick, seems to loop. The file I am opening and reading is a sendmail aliases file which contains ~4300 lines and I am only interested in those which begin with something like:while (defined($current_line = $input->getline())) { next if $current_line !~ /^\w+-owner:/; print "$current_line\n"; }
Edited 2003-03-19 by mirod: changed the title
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: I think this is a simple one...
by zby (Vicar) on Mar 18, 2003 at 15:57 UTC | |
Re: I think this is a simple one...
by CukiMnstr (Deacon) on Mar 18, 2003 at 16:06 UTC | |
Re: I think this is a simple one...
by mjn (Acolyte) on Mar 18, 2003 at 17:25 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |