in reply to Using the Substr
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 Section
Seekers of Perl Wisdom
in reply to Using the Substr
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