in reply to Re: Counting the start and end elements in a line
in thread Counting the start and end elements in a line
When I call the function
counttags(+);
When the script is compiled, I get a error,
Syntax error at vtag.pl at line 275, near "+)"
Execution of vtag.pl aborted due to compilation errors.
On the otherhand, if I have the code as counttags("+");, the $stag and $etag values remain 0.
For you to understand better, the content in the file goes like:
Die Errichtung <I>einer</I> Zweigniederlassung ist durch die Geschäftsführer anzumelden. Der Anmeldung ist eine öffentlich beglaubigte Abschrift des Gesellschaftsvertrages und der Liste der Gesellschafter beizufügen.<+>2</+>
In my function, I am trying to find the number of <I> and </I>, <+> and </+> and check whether the opening and the closing tag count matches.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Counting the start and end elements in a line
by davorg (Chancellor) on Jun 27, 2006 at 12:13 UTC |