Hello, World in C# (Object-Oriented Version)

We begin with the traditional “Hello, world” program made popular beginning at least with the first edition of The C Programming Language by Kernighan and Ritchie. We already presented a version of this program in C# in Chapter 9. In this section we provide an object-oriented version and also introduce building components from C# that can be called from PerlNET. Along the way we cover basic input/output (I/O) and arrays.

The Hello Class

It has been suggested that the traditional “Hello, world” program is harmful to students.[1] They start thinking in terms of a monolithic program, and this habit is hard to shake. As Perl programmers, we can have the same problem ourselves, as Perl makes it so easy ...

Get Programming PERL in the .NET Environment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.