my %time=reverse split(/([HMS])/, '5H3M17S'); no warnings 'uninitialized'; my $time=$time{H}*60*60+$time{M}*60+$time{S};
=cut
--Brent Dax
There is no sig.
In reply to Re: Time to seconds
by BrentDax
in thread Time to seconds
by argus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |