in reply to time string parsing question

I mainly agree with TedPride above: if it's fixed-length as it appears, just use substr. But if you want to use split, remember that the first argument is a regexp, not a string (everybody else in this thread seems to have forgotten): my $minute = (split /:|,/, $string)[4];or my $minute = (split /[:,]/, $string)[4];