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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Check tag value
by esskar (Deacon) on Apr 08, 2004 at 11:38 UTC | |
by Anonymous Monk on Apr 08, 2004 at 11:51 UTC | |
by eXile (Priest) on Apr 08, 2004 at 15:09 UTC | |
by hmerrill (Friar) on Apr 08, 2004 at 12:01 UTC | |
by Anonymous Monk on Apr 08, 2004 at 12:06 UTC | |
by Anonymous Monk on Apr 08, 2004 at 12:20 UTC | |
by hmerrill (Friar) on Apr 08, 2004 at 12:51 UTC |
Back to
Seekers of Perl Wisdom