http://www.perlmonks.org?node_id=1039928


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

Simply go for regex then:
if ($array[$i] =~ /\d+/){ <your code> }