Hi All,
Thanks for the ideas you gave which made me to make some satisfiable code ( of course to me alone and does not matches your standards )
Here is my modiefied version which tells how many iterations is the code taking to reach from start to the letter typed.
print"key in any 4 alpha char :";
chomp($string_name=<STDIN>);
for($i='aaaa',$c=0;$i le $string_name;++$i,++$c){}
print"$string_name is the $c th value starting from a\n";
Please run this piece and let me know how do I make it generic instead of constraining it to four alpachar alone as in the above code.
Regards
prad
2005-09-13 Retitled by holli, as per Monastery guidelines
Original title: 'Modified : String Increment'