rsriram has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am writing a script, in which I have to check whether the number of start and end elements match with each other in a tagged file. I have written a function in my script as:
sub counttags()Using this, I have to match for elements I, B etc. But I have two element + and -. I am calling this function inside the program,
counttags(I);There is no problem with this part, but if I call the + and - in the same way, it is not working. Can anyone tell me what is wrong in this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Counting the start and end elements in a line
by bart (Canon) on Jun 27, 2006 at 10:33 UTC | |
|
Re: Counting the start and end elements in a line
by GrandFather (Saint) on Jun 27, 2006 at 10:27 UTC | |
|
Re: Counting the start and end elements in a line
by davorg (Chancellor) on Jun 27, 2006 at 10:15 UTC | |
by rsriram (Hermit) on Jun 27, 2006 at 11:43 UTC | |
by davorg (Chancellor) on Jun 27, 2006 at 12:13 UTC | |
|
Re: Counting the start and end elements in a line
by rminner (Chaplain) on Jun 27, 2006 at 10:13 UTC | |
|
Re: Counting the start and end elements in a line
by Fletch (Bishop) on Jun 27, 2006 at 11:59 UTC | |
|
Re: Counting the start and end elements in a line
by esskar (Deacon) on Jun 27, 2006 at 11:47 UTC |