in reply to Re: number array with space
in thread number array with space

... the ... regex will fail for an element value of say "222test001" ... it would fire the function ...

But the regex doesn't seem to match that string at all, so how would it fire the function?. (Have you been naughty and updated your post without making a note of the change?)

>perl -wMstrict -le "my $val = '222test001'; print $val =~ /^\d+$/ ? 'fire' : 'no match'; " no match