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: separating code in two files

2013-03-02 Thread Rob Dixon
On 02/03/2013 14:37, Chris Stinemetz wrote: On Fri, Mar 1, 2013 at 3:37 PM, Chris Stinemetz wrote: On Fri, Mar 1, 2013 at 11:00 AM, Shlomi Fish wrote: Hi Jim, On Thu, 28 Feb 2013 11:21:59 -0800 Jim Gibson wrote: On Feb 28, 2013, at 10:31 AM, Chris Stinemetz wrote: I want to put a has

Re: separating code in two files

2013-03-02 Thread Jim Gibson
On Mar 2, 2013, at 6:37 AM, Chris Stinemetz wrote: > With Shlomi's approach how would I access each element in the %global_hash > within the main script calling the function? > > Below is what I have attempted. > > **Containers.pm** > > ## This is the file Containers.pm > package Containers;

Re: separating code in two files

2013-03-02 Thread Chris Stinemetz
On Fri, Mar 1, 2013 at 3:37 PM, Chris Stinemetz wrote: > > > On Fri, Mar 1, 2013 at 11:00 AM, Shlomi Fish wrote: > >> Hi Jim, >> >> On Thu, 28 Feb 2013 11:21:59 -0800 >> Jim Gibson wrote: >> >> > >> > On Feb 28, 2013, at 10:31 AM, Chris Stinemetz wrote: >> > >> > > I want to put a hash declaratio