- or download this
c = c.charCodeAt(0);
c++;
...
temp = c;
c = String.fromCharCode(temp);
line += c;
- or download this
line += String.fromCharCode(c.charCodeAt(0)+1);
- or download this
$line .= chr(ord($c)+1);
- or download this
use strict;
use warnings;
...
print "1. line='$line' c='$c'\n";
$line .= chr(ord($c)+1);
print "2. line='$line' c='$c'\n";
- or download this
1. line='hello' c='A'
2. line='helloB' c='A'