Perhaps you want something like this:
my ( $seconds, $minutes, $hours, $days ) = reverse $inputTxt =~ /\d+/g +;
In reply to Re: A regular expression that will work for (hh:)mm:ss [converting clock time to seconds]
by jwkrahn
in thread A regular expression that will work for (hh:)mm:ss [converting clock time to seconds]
by aware74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |