Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Perl
$s = "$i";

Interpolation of variables allows to put them inside a string
my $s = "" . $i;

Perl automatically converts numbers to strings, and strings to numbers, whenever required. The concatenation with the empty string is superfluous, it only indicates programmer intent.
S : String := Integer'Image (I);

New implementation...