Skip to Main Content
Learning Perl/Tk
book

Learning Perl/Tk

by Nancy Walsh
January 1999
Beginner content levelBeginner
373 pages
9h 43m
English
O'Reilly Media, Inc.
Content preview from Learning Perl/Tk

1.13. Using print for Diagnostic/Debugging Purposes

Normally, you'll run your Perl/Tk program by typing the program name at the command prompt:

% hello_world

or

C:\>perl hello_world

When you invoke the program this way, any output created by using a print (or printf) is to that terminal window. Sometimes, you won't see the information actually printed until you quit the program. This is probably because you didn't put a \n on the end of the string to be printed, which causes an automatic flushing of output. During your application processing, if you think you aren't seeing a print statement when you should be, make sure a \n is on the print statement.

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

Mastering Perl/Tk

Mastering Perl/Tk

Stephen Lidie, Nancy Walsh

Publisher Resources

ISBN: 1565923146Supplemental ContentCatalog PageErrata