perlfaq5: How can I make a filehandle local to a subroutine?

2006-01-29 Thread brian d foy
* This is a partial diff. I cleaned up a lot of whitespace issues. * In this answer, I show an example of storing a filehandle reference in a container and then using that with print. -=head2 How can I make a filehandle local to a subroutine? How do I pass filehandles between subroutines? How

perlfaq3: How do I debug my Perl programs?

2006-01-29 Thread brian d foy
* I completely rewrote the answer to have a friendly tone and actually answer the question. :) Index: perlfaq3.pod === RCS file: /cvs/public/perlfaq/perlfaq3.pod,v retrieving revision 1.56 diff -d -u -r1.56 perlfaq3.pod --- perlfaq3.

Re: perlfaq3: How do I debug my Perl programs?

2006-01-29 Thread Sébastien Aperghis-Tramoni
brian d foy wrote: > * I completely rewrote the answer to have a friendly tone and actually > answer the question. :) [...] > +Perl comes with an interactive debugger, which you can start with the > +C<-d> switch. It's fully explained in L. > + > +If you'd like a graphical user interface and you h