Because ":" is not "."
Use @digits = split /[:.]/, $string
And pick what you need
For anything more complicated, better consider a dedicated DateTime module.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re^4: remove leading figures
by LanX
in thread remove lending figures
by frank1
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |