Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: increment a string

Perl: increment a string
{filelink=14830}

#!/usr/bin/perl -w
$a = "al";
print ++$a, "n";   # "am"
$a = "Xs";
print ++$a, "n";    #"Xt"

No comments yet.

Leave a Comment