Re: Reference subroutine as parameter

2009-12-30 Thread Trevor Vallender
On Wed, 2009-12-30 at 07:23 -0800, John W. Krahn wrote: > Trevor Vallender wrote: > > Hi, > > Hello, > > > I have just moved a piece of code into a separate module. However, the > > subroutine in the new module needs to reference a subroutine in the > > script it's called from. Is there any way a

Re: Reference subroutine as parameter

2009-12-30 Thread Trevor Vallender
On Wed, 2009-12-30 at 16:13 +0100, Jeremiah Foster wrote: > On Dec 30, 2009, at 15:54, Trevor Vallender wrote: > > > Hi, > > > > I have just moved a piece of code into a separate module. However, the > > subroutine in the new module needs to reference a subroutine in the > > script it's called fr

Re: Reference subroutine as parameter

2009-12-30 Thread John W. Krahn
Trevor Vallender wrote: Hi, Hello, I have just moved a piece of code into a separate module. However, the subroutine in the new module needs to reference a subroutine in the script it's called from. Is there any way around this? Basically, I am using AnyEvent::XMPP, and want the setup code i

Re: Reference subroutine as parameter

2009-12-30 Thread Jeremiah Foster
On Dec 30, 2009, at 15:54, Trevor Vallender wrote: > Hi, > > I have just moved a piece of code into a separate module. However, the > subroutine in the new module needs to reference a subroutine in the > script it's called from. Is there any way around this? > > Basically, I am using AnyEvent::

Reference subroutine as parameter

2009-12-30 Thread Trevor Vallender
Hi, I have just moved a piece of code into a separate module. However, the subroutine in the new module needs to reference a subroutine in the script it's called from. Is there any way around this? Basically, I am using AnyEvent::XMPP, and want the setup code in the module. This code sets up whic