in reply to How to get Incremental charecter groups in a string

Hi Dora,

Welcome to the Monastery. :) Please take a look at Welcome to the Monastery! Make yourself at home..

What do you mean by incremental characters?

You ll get answers only in assumption unless you give exact rules. Here is one way to do it, but in assumption.

$str="this is abc and bcf and xyz and ijklmn"; (@word) = split ' ', $str; for $org (@word) { $inc = join '', sort split '', $org; print "Group of incremental characters:\t$org\n" if ($inc eq $org) +; }

updated: changed coding

Prasad