in reply to Re: removing repeats
in thread removing repeats
foreach $word (@words) { if ($word ne '') { my $flip = ($word eq $prevword)..($word ne $prevword); if ($flip eq '1') { # Use eq to avoid warning when flip is + '' print " $n $word\n"; } $prevword = $word; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: removing repeats
by dummy2 (Initiate) on Mar 01, 2005 at 17:01 UTC | |
|
Re^3: removing repeats
by dummy2 (Initiate) on Mar 01, 2005 at 17:24 UTC | |
by Roy Johnson (Monsignor) on Mar 01, 2005 at 17:47 UTC |