should be something like:if ( $Lines eq "<NumberofDays>\d+</NumberofDays>" )
3 differences between your and my line:if ( $Lines =~ m|<NumberofDays>(\d+)</NumberofDays>| )
Hope this helps getting you started. For documentation on regular expressions there are 2 good tutorials that come with perl that were not mentioned here: perlrequick perlretutprint $1
In reply to Re: Re: Re: Check tag value
by eXile
in thread Check tag value
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |