Re: nested subroutines and shared variables

2002-09-18 Thread Michael Fowler
On Tue, Sep 17, 2002 at 03:15:44PM -0400, Bernd Prager wrote: > I'd like to write a subroutine that parses an XML file. > I use XML::Parse and one way that works is to define > subroutines with the name of an XML tag and every appearance > of that tag calls the appropriate subroutine. > > Since I

Re: nested subroutines and shared variables

2002-09-18 Thread david
Bernd Prager wrote: >> >> Why dont you just define the function outside and call them from inside >> your master function >> >> Bernd Prager wrote: >> > >> > I run into a problem and would appreciate some help. >> > >> > I'd like to write a subroutine that parses an XML file. >> > I use XML::

Re: nested subroutines and shared variables

2002-09-18 Thread Bernd Prager
> > Why dont you just define the function outside and call them from inside > your master function > > Bernd Prager wrote: > > > > I run into a problem and would appreciate some help. > > > > I'd like to write a subroutine that parses an XML file. > > I use XML::Parse and one way that works i

Re: nested subroutines and shared variables

2002-09-18 Thread Ramprasad A Padmanabhan
Why dont you just define the function outside and call them from inside your master function Bernd Prager wrote: > Hi, > > I run into a problem and would appreciate some help. > > I'd like to write a subroutine that parses an XML file. > I use XML::Parse and one way that works is to define > s

nested subroutines and shared variables

2002-09-18 Thread Bernd Prager
Hi, I run into a problem and would appreciate some help. I'd like to write a subroutine that parses an XML file. I use XML::Parse and one way that works is to define subroutines with the name of an XML tag and every appearance of that tag calls the appropriate subroutine. Since I want to have t