Or if you want to get fancysub paddatevalues { foreach my $value (@_) { $value = sprintf "%02d", $value; } return @_; }
sub paddatevalues { return map {sprintf "%02d", $_} @_; }
In reply to Re: Zero-padding integers and the numbers-as-strings Red Flag
by Paladin
in thread Zero-padding integers and the numbers-as-strings Red Flag
by Ionizor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |