in reply to Re: Time to seconds
in thread Time to seconds
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Time to seconds
by tadman (Prior) on Nov 16, 2001 at 00:31 UTC | |
by Aristotle (Chancellor) on Nov 16, 2001 at 02:06 UTC | |
by John M. Dlugosz (Monsignor) on Nov 16, 2001 at 03:40 UTC | |
by Aristotle (Chancellor) on Nov 16, 2001 at 17:39 UTC | |
by John M. Dlugosz (Monsignor) on Nov 16, 2001 at 20:33 UTC | |
by John M. Dlugosz (Monsignor) on Nov 16, 2001 at 03:38 UTC | |
by tadman (Prior) on Nov 16, 2001 at 22:27 UTC |