The array is not necessary, since it can be generated from keys %time_value. That way you don't have to keep the two data structures in sync.my @time_values = qw [ d h m s ]; my %time_value = ( d => 86400, h => 3600, m => 60, s => 1 );
—John
In reply to Re: Re: Time to seconds
by John M. Dlugosz
in thread Time to seconds
by argus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |