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

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hey i have data which looks like @data=("conteent" , , , ,25.36,36.36,85.1,.....) . So i want a if statement whose block is accessed only when numeric part comes. Point to be noted is all have decimal points . I did this

if ($data[$i] =~ /^[0-9]+$/) { }

but still its not working , maybe because of decimal point . need help