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.
In reply to Re^2: Counting the start and end elements in a line
by rsriram
in thread Counting the start and end elements in a line
by rsriram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |