#!/usr/bin/perl my $a = 123; my $b = ".txt"; print sprintf("%s%s", $a, $b);
Standard input is empty
123.txt
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!