Do you realize, that
join('', (/(..)(..)(....)/)[0,1,2])
does not change a string $_ of length 8 in any way? (Apart from burning CPU cycles...). The regex also does not fit very well when splitting YYYYMMDD into pieces.
In reply to Re^3: sorting dates in YYYYMMDD format
by hdb
in thread sorting dates in YYYYMMDD format
by learner@perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |