Re: nested subroutines

2013-03-02 Thread Chris Stinemetz
Sent from my iPhone On Mar 2, 2013, at 7:49 PM, "John W. Krahn" wrote: > Chris Stinemetz wrote: >> Thanks in advance. >> >> I have a subroutine inside another subroutine in a module I am tyring to >> put together. >> >> I would like to pass the value assigned to $srt in the while loop as the

Re: nested subroutines

2013-03-02 Thread John W. Krahn
Chris Stinemetz wrote: Thanks in advance. I have a subroutine inside another subroutine in a module I am tyring to put together. I would like to pass the value assigned to $srt in the while loop as the parameter for the session_attempts subroutine called withing the processPegs subroutine. The

nested subroutines

2013-03-02 Thread Chris Stinemetz
Thanks in advance. I have a subroutine inside another subroutine in a module I am tyring to put together. I would like to pass the value assigned to $srt in the while loop as the parameter for the session_attempts subroutine called withing the processPegs subroutine. The error I am getting is:

Re: nested subroutines and shared variables

2002-09-18 Thread Michael Fowler
utine. > > Since I want to have this procedure entirely encapsulated in > my funtion I end up defining nested subroutines: > > sub myParse { >my $content; > >sub myXMLtag { > (... do something with $content...) >} > > } > Now I

Re: nested subroutines and shared variables

2002-09-18 Thread david
the name of an XML tag and every appearance >> > of that tag calls the appropriate subroutine. >> > >> > Since I want to have this procedure entirely encapsulated in >> > my funtion I end up defining nested subroutines: >> > >> > sub myParse { >>

Re: nested subroutines and shared variables

2002-09-18 Thread Bernd Prager
> > 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 this procedure entirely encapsulated in > > my funtion

Re: nested subroutines and shared variables

2002-09-18 Thread Ramprasad A Padmanabhan
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 this procedure entirely encapsulated in > my funtion I end up defining nested subroutines: > > sub myParse

nested subroutines and shared variables

2002-09-18 Thread Bernd Prager
have this procedure entirely encapsulated in my funtion I end up defining nested subroutines: sub myParse { my $content; sub myXMLtag { (... do something with $content...) } } Now I'm getting error messages "Variable "$content" will not stay shared&