Year modulo one hundred would also work.
printf("%02", $year % 100);
--
perl -wpe "s/\b;([mnst])/'$1/g"
In reply to Re: sprintf the last 2 digits
by belg4mit
in thread sprintf the last 2 digits
by fireartist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |