Thanks for your message. The Perl script is written not by me, the person is a subscriber of this list who made it on my request. It is obviously better to use hashtables and C# do have hashtables also. The reason of using arrays is just to practice what I've learnt. Your valuable suggestions about delimiters and changing the code will help me to make it better. I'll use hashtalbes next time and will apply better methods approach and will remove duplicate methods.<br>
Thank for your kind suggestions.<br>Regards<br><br><div class="gmail_quote">On Tue, Jun 3, 2008 at 11:28 AM, jeremy ellman <<a href="mailto:jeremyellman@gmail.com">jeremyellman@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>The two implementations are quite different. In Perl you are using hashes, and in C# you are using arrays. C# has hashtables and most other features that Perl has, including iterate over hashtables.<br><br>Split and regular expressions are identical between C# and Perl (leastwise, I've never found a difference), but I do notice that you are using different delimiters as you declare them twice. I suggest that you make delims an instance variable, and declare that once. Then you can test you application with a small paragraph length text to understand what it is the two programs do differently<br>

<br>It is also a bad idea to use static methods in C# unless you need to (and you don't).<br><br>Incidentally, it is much faster to write Corpus applications in Perl, although C# apps are more robust.<br><font color="#888888"><br>
Jeremy<br>
<br></font><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c"><br></div></div><div class="Ih2E3d">
_______________________________________________<br>
Corpora mailing list<br>
<a href="mailto:Corpora@uib.no" target="_blank">Corpora@uib.no</a><br>
<a href="http://mailman.uib.no/listinfo/corpora" target="_blank">http://mailman.uib.no/listinfo/corpora</a><br>
<br></div></blockquote></div><br>
</blockquote></div><br><br clear="all"><br>-- <br>Muhammad Shakir Aziz محمد شاکر عزیز<br>