in reply to Split and Pattern Match

Here's a regex solution to your first query
my $var = "1 word here another word"; my($head, $tail) = $var =~ /( (?:\w+[ ]?){3} ) [ ] (.*)/x; print "head - [$head]\n"; print "tail - [$tail]\n"; __output__ head - [1 word here] tail - [another word]
For your second quandary we'll use another splashing of regex
print "yup" if "12 buckle my shoe" =~ /^\d{2}\b/; __output__ yup
See. perlre for more info on the regexes used above.
HTH

_________
broquaint