Reader: 1
|< 1 2 >| | 15 entries, 2 pages |
s/-(\d)-/-0$1-/g;
s/(\d+)-(\d+)-(\d+)/sprintf("%02d-%02d-%04d", $1,$2,$3)/eg;
s/-(\d)-/-0$1-/g;
1
2
3
4
5
6
7
my @datuemer = ( '2005-1-23',
'2005-12-27',
'2005-11-2',
'2005-7-9',
);
s/(\d+)-(\d+)-(\d+)/sprintf '%04d-%02d-%02d', $1, $2, $3/e for @datuemer;
s/(\d+)-(\d+)-(\d+)/sprintf("%02d-%02d-%04d", $1,$2,$3)/eg;
s/-(\d)-/-0$1-/g;
s/(\d+)-(\d+)-(\d+)/sprintf '%04d-%02d-%02d', $1, $2, $3/e
|< 1 2 >| | 15 entries, 2 pages |