But that example will pad an 0 left or right and will make VMs 10-99 as 010 ,, 099
That is completely incorrect. You haven't even bothered to try it, have you?
#!/usr/bin/env perl use strict; use warnings; print sprintf "%02d\n", $_ for (0..20);
🦛
In reply to Re^11: appending a variable
by hippo
in thread appending a variable
by pragovnj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |