September 2002
Intermediate to advanced
496 pages
10h
English
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.
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"; ...
Read now
Unlock full access