in reply to List of substrings
-Markuse strict; my $string = shift; my %seen; map { my $temp = $string; substr $temp, $_, 1, ""; print "$temp\n" unless $seen{$temp}++; } (0..(length $string) - 1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: List of substrings
by jsprat (Curate) on Jun 24, 2002 at 18:41 UTC | |
by kvale (Monsignor) on Jun 24, 2002 at 18:49 UTC |