Debugging in Visual Studio and Visual Perl

Visual Studio comes with great debugging features, and Visual Perl enables you to use these debugging features with standard Perl scripts. At the time of this writing, interactive IDE debugging of managed PerlNET executables was not supported, so we will illustrate with a standard Perl script.

SimpleBytes Program – Step 1

The SimpleBytes\Step1 program calculates how many bytes there are in a kilobyte, a megabyte, a gigabyte, and a terabyte. It then goes on to prompt the user for an exponent and prints out a table of powers of 1,024 up to the exponent supplied by the user.

 # SimpleBytes.pl - Step 1 use strict; my $kilo = 1024; print "kilo = $kilo \n"; my $mega = $kilo * 1024; print "mega = $mega \n"; ...

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.