Skip to Content
Perl Debugged
book

Perl Debugged

by Peter Scott, Ed Wright
March 2001
Intermediate to advanced
288 pages
4h 56m
English
Addison-Wesley Professional
Content preview from Perl Debugged

Chapter 5. Tracing Code

“1545 Relay #70 Panel F (moth) in relay. First actual case of bug being found.”

Admiral Grace Hopper's Logbook September 9, 1945

In the phylogeny of debugging, the Protozoic approach consists of tossing

print "\$variable = $variable\n";

lines into the problem code at various places. Before we advance up the evolutionary ladder to interactive debuggers in Chapter 7, however, we have a lot of ground to cover.

We should not so readily disparage the humble print statement, because with a little tuning it can turn into a valuable tool. As we've already seen, the most basic kind of tracing statement prints out a variable ...

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

Perl Hacks

Perl Hacks

Chromatic, Damian Conway, Curtis Ovid Poe, Curtis (Ovid) Poe
Pro Perl

Pro Perl

Peter Wainwright
Intermediate Perl

Intermediate Perl

Randal L. Schwartz, brian d foy, Tom Phoenix
Perl Testing: A Developer's Notebook

Perl Testing: A Developer's Notebook

Ian Langworth, Chromatic

Publisher Resources

ISBN: 0201700549Purchase book