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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Using the Substr
by derby (Abbot) on Mar 04, 2014 at 19:31 UTC |
In Section
Seekers of Perl Wisdom