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
I hope I explained it clearly<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
Thanks a bunch for your help
edit (broquaint): fixed formatting
Back to
Seekers of Perl Wisdom