in reply to Detect presence of numbers 1-9

Smells arbitrary enough to be homework. What's the context of this?

-- Randal L. Schwartz, Perl hacker