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
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
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:
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
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 {
>>
> > 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
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
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&