how to change string to integer in perl Get link Facebook X Pinterest Email Other Apps August 31, 2016 my $stri = "100"; #convert $stri = int($stri); print "$string\n"; or my $str = "100"; # convert $stri = sprintf("%d", $stri); print "$stri\n"; Read more