Keep It Simple, Stupid | |
PerlMonks |
Re: Capture Lookaheadby anonymized user 468275 (Curate) |
on Jul 26, 2005 at 07:51 UTC ( [id://478084]=note: print w/replies, xml ) | Need Help?? |
Printing all possible substrings is what you asked for and what the replies have delivered. But I do wonder if that can be what you need, especially given that this will generate many duplicates. If you tell us more globally what the goal is, there might be a more efficient solution to the main problem we can find. For example, if you are next going to compare all these substrings with another list of strings, then it would be best to match them after all.
One world, one people
In Section
Seekers of Perl Wisdom
|
|