in reply to parsing etime field from solaris ps
I think a regex makes more sense in this case. Yours can be cleaned up a bit though.
my ($dd,$hh,$mm,$ss) = /^(?:(\d\d)-)?(?:(\d\d):)?(\d\d):(\d\d)$/;
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: parsing etime field from solaris ps
by greenFox (Vicar) on May 30, 2003 at 04:58 UTC |