in reply to Re^5: Regex help
in thread Regex help
# I didn't have the length == 8 line because # I'm only reading one file containing 8-letter words while (<FH>) { $c = substr ($_, 2, 1); if (substr ($_, 5, 1) eq $c) { my %h; @h{split//,$_} = (1) x 8; print if keys %h == 7; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Regex help
by shmem (Chancellor) on Jun 24, 2007 at 05:26 UTC |