Skip to Content
Programming PERL in the .NET Environment
book

Programming PERL in the .NET Environment

by Yevgeny Menaker, Michael Saltzman, Robert J. Oberg
September 2002
Intermediate to advanced content levelIntermediate to advanced
496 pages
10h
English
Addison-Wesley Professional
Content preview from Programming PERL in the .NET Environment

Input/Output

As we stated in the previous section, all Core Perl constructions may be brought into use in PerlNET. Input/output issues are not an exception.

Performing Output

Instead of using a long call to the WriteLine method of the Console class, we can write

print "Hello from Perl!\n";

and we will get the same result as if had written

Console->WriteLine("Hello from Perl!");

The reason we use the Console class rather then Core Perl print is to demonstrate the .NET concepts on simple examples and to show the .NET way to do things. You may combine Core Perl and .NET statements to perform output. However, you may run into buffering problems when running the program in some environments, so that your program output would not be in the original ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Sams Teach Yourself Perl in 21 Days, Second Edition

Sams Teach Yourself Perl in 21 Days, Second Edition

Laura Lemay, Rafe Colburn
Pro Perl

Pro Perl

Peter Wainwright

Publisher Resources

ISBN: 0130652067Purchase book