Perl-Sensitive Sunglasses | |
PerlMonks |
Alternate ways to loop over input (was: I think this is a simple one...)by mjn (Acolyte) |
on Mar 18, 2003 at 15:51 UTC ( [id://244038]=perlquestion: print w/replies, xml ) | Need Help?? |
mjn has asked for the wisdom of the Perl Monks concerning the following question:
But I am still doing something stupid here. My question is: is there a faster/smarter way to do something like this:
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: listname-owner: bob@hostname.com Any input would be much appretiated... _____________________ mjn Edited 2003-03-19 by mirod: changed the title
Back to
Seekers of Perl Wisdom
|
|