gube has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, i have a file which contains the below mentioned input, if the file has to follow <main> tag follow <sub1> follow <sub2> and <sub3>. If the order changes, the error message has to display. Assume the file may contain more than 1000 lines like this. Please help me.
<main>Ability-oriented motivation, 00206.p0105 <main>Ability test <sub1>in conjunction with achievement batteries, 00226.p0085 <sub3>definition, 00226.g0005 <main>Aboriginal athletes, 00954.p0155 <sub2>Absolutism, 00688.p0010
Thanks in advance,
Regards,
Gubendran
Retitled by davido from 'Problem in my file'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to validate file format
by holli (Abbot) on Feb 03, 2005 at 14:46 UTC | |
|
Re: How to validate file format
by borisz (Canon) on Feb 03, 2005 at 15:05 UTC | |
|
Re: How to validate file format
by gopalr (Priest) on Feb 04, 2005 at 01:20 UTC | |
|
Re: How to validate file format
by Fletch (Bishop) on Feb 03, 2005 at 14:49 UTC |