#!/usr/bin/perl
# "Music Live"
my $str = "12 hr 62 min"; 
my @str1 = split (/\s/, $str);
if($str1[1] eq "hr" and $str1[3] eq "min")
{
print "correct";
}
else
{
print "wrong";
}
my @st=split(/\s+/,$str);
if($st[0]>12 or $st[1]>60 or $st[2]>60)
{
print "wrong";
}
else
{
print "\n array ".$st[0];
print "\n array ".@st[1];
print "\n array ".@st[2];
print "\n array ".@st[3];
print "\n array ".@st[4]; 
print "\n str: ".$str."\n";
}