Is substr mandatory? Or can you use a regex, like
(assuming there are only digits between the colons).$string =~ /^(\d+:\d+:\d+):/; $result = $1;
HTH, Rata
In reply to Re: Using the Substr
by Ratazong
in thread Using the Substr
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |