print (sprintf "%5.5d", 1) . "hello\n"; #### print ( ( sprintf "%5.5d", 1 ) . "hello\n" ); # or print + ( sprintf "%5.5d", 1 ) . "hello\n";