programming-examples/perl/String/%3d specifies that the integer number should be displayed with three digits.pl
2019-11-15 12:59:38 +01:00

10 lines
114 B
Perl

#!/usr/bin/perl -w
$x = 123;
$y = 1234;
$z = 1;
printf("\t x=%3d y=%4d z=%5d\n", $x, $y, $z);