in reply to string increment
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 pradprint"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";
2005-09-13 Retitled by holli, as per Monastery guidelines
Original title: 'Modified : String Increment'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: string increment
by wfsp (Abbot) on Sep 13, 2005 at 10:06 UTC | |
Re: Re: string increment
by gargle (Chaplain) on Sep 13, 2005 at 11:48 UTC | |
Re: Re: string increment
by reasonablekeith (Deacon) on Sep 13, 2005 at 10:42 UTC | |
Re: Re: string increment
by castaway (Parson) on Sep 13, 2005 at 10:37 UTC |