sub formatDate { return join q{.}, reverse split m{-}, (split m{\s+}, $_[0])[0]; }
but, for maintainability, you are probably better off breaking it down over two or three lines.
Cheers,
JohnGG
In reply to Re: Custom date string formatting
by johngg
in thread Custom date string formatting
by nelio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |