Hour 12. Using Perl s Command-Line Tools

 <  Day Day Up  >  

Hour 12. Using Perl's Command-Line Tools

What You'll Learn in This Hour:

  • How to use Perl's debugger

  • How to use command-line switches to write small Perl programs

Until now, the Perl interpreter has been a fairly simple program to use. You type a program into a file and then invoke the Perl interpreter to run your program. The Perl interpreter is much more flexible than this, however.

Built into the interpreter is a debugger. The debugger allows you to play your Perl program like a videotape. You can rewind your program to the beginning, play it slow, play it fast, and freeze-frame it to examine the innards closely. The debugger is an often underutilized tool for finding problems in Perl programs.

Perl can also run programs that are not typed into files. For example, you can run small programs directly from your system's command prompt.

 <  Day Day Up  >  


SAMS Teach Yourself Perl in 24 Hours
Sams Teach Yourself Perl in 24 Hours (3rd Edition)
ISBN: 0672327937
EAN: 2147483647
Year: 2005
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net