http://qs1969.pair.com?node_id=343578

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

Hey everyone I have a quick question on perl, I have a list of files which contain the following tag <NumberofDays>. What I want to do is write a small perl script that would parse those list of files and check the value of that tag, and if the value of that tag is not a number then copy it into a different directory. like eg
<NumberofDays>23</NumberofDays> this okay leave it <NumberofDays>Two</NumberofDays> copy this file to a diff dir <NumberofDays>3d</NumberofDays> copy this file to a diff dir as well
I hope I explained it clearly

Thanks a bunch for your help

edit (broquaint): fixed formatting