There's more than one way to do things | |
PerlMonks |
Re: best way to read and save long list of wordsby tybalt89 (Monsignor) |
on Apr 19, 2020 at 01:24 UTC ( [id://11115763]=note: print w/replies, xml ) | Need Help?? |
Instead of using explicit while(){} and for(){} loops, I tend to use perl's built-in looping constructs.
or
and for write
The regex on input was a win for me reading /usr/share/dict/words on my system which has over 123,000 lines in it.
In Section
Seekers of Perl Wisdom
|
|