Google Search: perl c# comparison

Another search that I have noticed that has been passed to my site was "perl c# comparison", I would assume that the person that asked this was trying to compare the languages and not how c# and perl perform comparisons.

My take on this would be that I don't really think that the two are even slightly similar in sytanx, semantics or even intended use. The only thing that I have found in common is the use of the ";" to signify the end of the line.

  • The OO implementation is not similar, C# is strictly Object Orientated, whilst I think that Perl was not and is not intended to be OO (I know a lot of people will disagree with me). I just don't think Perl's OO functionality is that intuative, it is like JavaScripts OO: Obtuse!
  • C# has a very strict and highly developed Framework that can be used from the start, Perl has lots of modules that you have to install, by default though you would do everything yourself.
  • The semantics in C# are stricter, that is you can may tend to do things in one way, other people would tend to do it the same way too. In Perl at least it seems to me that you can do everything many many ways, which a lot of people like because one person doesn't code the same as another; it is not forced on you.
  • Perl has Regex's built in to the language, in C# Regex's are an object that you construct etc.
I use perl because I can do a lot of work quickly in it, and my site is based on a Linux server. I use C# because I like the langague and it is my job.

There are many more reasons that the languages are completly different. This was my take.

About Me: Paul Kinlan

I lead the Chrome Developer Relations team at Google.

We want people to have the best experience possible on the web without having to install a native app or produce content in a walled garden.

Our team tries to make it easier for developers to build on the web by supporting every Chrome release, creating great content to support developers on, contributing to MDN, helping to improve browser compatibility, and some of the best developer tools like Lighthouse, Workbox, Squoosh to name just a few.