Perl/Shell Knowledge Sharing
Perl Interview Questions and Answers
Monday, January 17, 2011
string autoincrement
print ++($a = "ay");
print "\n\n";
print ++($a = "QZ");
print "\n\n";
print ++($a = "Qz");
print "\n\n";
print ++($a = "b1");
print "\n\n";
print ++($a = "zz");
__END__
OUTPUT:
az
RA
Ra
b2
aaa
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment