Helps students learn the right way to program with Perl, regardless of their existing experience.
Gives students mastery over a key Perl feature that can be used to solve challenging problems in a broad range of application domains.
Teaches students how to build robust Web applications that integrate enterprise-class databases.
Helps students build on their skills with expert-level techniques.
Gives students easy access to powerful code examples they can easily use and adapt.
With Perl.NET it is now possible to use and create .NET components and to wrap existing Perl modules so that they are available to all .NET compliant languages. Perl.NET enables you to enjoy both worlds - .NET and Perl. By combining their features you'll have an ability to develop powerful robust components that may be reused in other .NET applications. This book provides many programs that illustrate features of Perl and .NET. The programs are clearly labeled in the text, and they are available through the associated Web site. There is also a case study that illustrates many features of Perl and .NET working together in combination, as they would in a practical application. The authors show you how to use .NET classes in Perl programs and how to create .NET components using Perl. Important .NET classes are surveyed, and there is coverage of using .NET in specific areas, including graphical user interfaces, database programming using ADO.NET, XML, ASP.NET and Web services. Also, in the appendix "C# Survival Guide" you will see how Perl interoperates with .NET languages, using C#, the language designed for .NET, as an example.
Click here for a sample chapter for this book: 0130652067.pdf
About This Series.
I. INTRODUCTION TO .NET AND PERL.1.NET Framework.
.NET: What You Need to Know. A Testbed for PerlNET. What Is Microsoft .NET? .NET Framework Overview. Common Language Runtime. Summary.2. Writing Simple Programs in Perl.
Your First Perl Program. Perl Variables. Simple Input and Output. Control Flow Constructs. Altering Control Flow. Special Perl Variables. Summary.3. Operators in Perl.
Perl Operators. Operators Taken from C Language. Native Perl Operators. String Functions. File Inquiry Operators. Summary.4. Array and Hash Functionality.
Array Manipulation. Hashes (Associative Arrays). Useful Hash Examples. Built-in Arrays and Hashes. Summary.5. Subprograms.
Organization of Subroutines . Passing Arguments to Subroutines. Returning a Value from a Subroutine. Perl Libraries. The Standard Perl Library. Packages. Writing Special Sort Functions. Summary.6. Perl References.
References to Various Perl Datatypes. Anonymous References. Complex Data Structures. Collections of Records. Summary.7. Object-Oriented Programming.
The Vocabulary of Object Orientation. Defining and Using Objects. Inheritance. Summary.8. The Comprehensive Perl Archive Network.
Format of Perl Modules. A Real Module: Roman.pm. Plain Old Documentatio n. Downloading Perl Modules with ppm. The Comprehensive Perl Archive Network. Summary.
II. PROGRAMMING WITH PERLNET.9. First Steps in PerlNET.
Your First PerlNET Program. Main Function. Namespaces. Expressions. Marshalling Types. Input/Output. Main Sample. Summary.10. Using .NET Components in PerlNET Programs.
Components Overview. .NET Classes. .NET Types and PerlNET. Class Usage in General. An Object's Life Cycle. Calling Methods. Properties and Fields. Stock Management: Step 1. Useful Types. Summary.11. Creating .NET Components: Pure Perl Types.
Component Development. Component Sample. Your Own PerlNET Component. Wrapping Existing Perl Modules. Summary.12. Component Development: In-Depth Discussion.
PerlNET Component Types. Inheritance. Interface. Exceptions. Summary.13. .NET Framework Classes.
System.Object. Garbage Collection and Finalization. Directories and Files. Files and Streams. Multiple Thread Programming. More About Delegates. Summary.14. GUI Programming: Windows Forms.
GUI and .NET. Creating a Simple Windows Form. Events Handling. Menus. Controls. Stock Management Case Study. Summary.15. Database Programming with ADO.NET.
Data Providers. The Visual Studio.NET Server Explorer. ADO.NET Connection. Connected Database Scenario. The Disconnected Database Scenario. Stock Management System Case Study. Summary.16. ASP.NET Web Development and PerlASPX.
Prerequisites. What Is ASP.NET? Web Forms. Response and Request Handling. HTML Representation of Web Forms. ASP.NET Applications. Using PerlNET Components in ASP.NET. Stock Query. Web Services. Summary.Appendix A. Visual Studio .NET and Visual Perl.
Overview of Visual Studio .NET. Creating a Managed Exe Application. Debugging in Visual Studio and Visual Perl. Summary.Appendix B. C# Survival Guide for PerlNET Programmers.
Hello, World in C# (Object-Oriented Version). Hello, World (Component Version). Performing Calculations in C#. C# Type System. Inheritance in C#. Case Study. Summary.Index.
Microsoft .NET is an advance in programming technology that greatly simplifies application development both for traditional, proprietary applications and for the emerging paradigm of web services. The technology was designed to grow and evolve by providing us an option to add third-party products, such as plug-ins for Visual Studio and compilers for different languages. As part of an effort to integrate the popular Perl language into the Microsoft development environment in general and into the .NET family specifically, ActiveState has recently released a new product, PerlNET, which is part of the Perl Development Kit. With PerlNET it is now possible to use and create .NET components and to wrap existing Perl modules so that they are available to all .NET-compliant languages. PerlNET enables you to enjoy both worlds.NET and Perl. By combining their features you'll have an ability to develop powerful robust components that may be reused in other .NET applications.Audience
This book is intended for both .NET and Perl programmers to help bring these two rich worlds together. In Perl there is a saying: "there is always more than one way to do it." That is even more true now, as you can add "the .NET way." If you are a Perl programmer, this book will help you understand .NET and the vast array of services available to you. You will learn how, through Web services, you can connect to a wide variety of heterogeneous systems using standard Internet protocols. If you are a .NET programmer, you will learn why Perl has become one of the most popular languages in the world and how to access the vast CPAN archive of Perl modules.Overview and Organization
The book has been designed to make it easy for you to navigate to what you need to know. Part 1 is an introduction to .NET and Perl and should be at least skimmed by everyone, with different emphasis depending on your background. Chapter 1 introduces .NET and covers the fundamentals of the .NET Framework. It also guides you to setting up a testbed consisting of .NET, Perl, and the special tools provided by ActiveState. If you are an experienced Perl programmer, you can skip directly to Part 2.
If you are new to Perl, you can quickly come up to speed with the tutorial on Core Perl in Chapters 2 to 8. It includes an in-depth treatment of objects in Perl and introduces the CPAN Perl archive. The treatment of Core Perl is very generic, and you will easily be able to apply what you have learned to any system that supports Perl. You can read much more about Perl in the book Modern Perl Programming by Michael Saltzman (Prentice Hall PTR, 2002). In that book you can also learn how to program Perl in a Unix environment. In this book we focus on programming Perl in Windows. Part of the joy of programming Perl in Windows is Visual Perl, which is an add-on to Visual Studio .NET. We cover Visual Studio and Visual Perl in Appendix A.
Part 2 covers in detail the use of PerlNET to bring together the worlds of .NET and Perl. We show you how to use .NET classes in Perl programs and how to create .NET components using Perl. Important .NET classes are surveyed, and there is coverage of using .NET in specific areas, including graphical user interfaces, database programming, and using ADO.NET, ASP.NET, and Web services.
You can learn much more about .NET from other books in The Integrated .NET Series. Also, Appendix B, "C# Survival Guide for PerlNET Programmers," will help you get started with C#, and you can see how Perl interoperates with .NET languages, using C#, the language designed for .NET, as an example.Sample Programs
The only way to really learn a programming language is to read and write many, many programs. This book provides many programs that illustrate features of Perl and .NET. The sample programs are provided in a self-extracting file on the book's Web site. When expanded, a directory structure is created whose default root is c:\OI\NetPerl. The sample programs are in directories Chap01, Chap02, and so on. All the samples for a given chapter are in individual folders within the chapter directories. The names of the folders are clearly identified in the text. An icon in the margin alerts you to a code example. Visual Perl projects are provided for the sample programs, and they can also be built at the command line. There is also a stock management case study that illustrates many features of Perl and .NET working together in combination, as they would in a practical application. A special point is made of demonstrating the object-oriented features of Perl and .NET. If you are new to object orientation, studying the case study is a must!Web SiteThe Web site for the book series is
www.objectinnovations.com/dotnet.htm. A link is provided at that Web site for downloading the sample programs for this book.