in reply to Re^3: Dictionary filter regex
in thread Dictionary filter regex
Thanks, interesting. I see you also have the issue I have - _differnet_ typos ~
next if $word ~=Heh.
My original code produces:
time perl sh.pl > sh.txt real 0m3.770s user 0m3.692s sys 0m0.074s
...and using the great sort of 4 liner while loop:
time perl sh.pl > sh.txt real 0m4.192s user 0m4.170s sys 0m0.015s
seems slower.
Also, as to the error on open a file, I never bother when doing it in a terminal on a local machine as I know the file exists - in other circumstances I would, of course.
Thanks for your input!
NickP.S. The first word my dictionary file pulls up is abandon ship
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Dictionary filter regex
by Laurent_R (Canon) on Nov 27, 2016 at 13:19 UTC |