Re: anonymous subroutine problem

2002-03-29 Thread bob ackerman
oops. you are correct. 2nd element is what you want. first is the class. so, i copied your call to new and got no error and was able to access the elements. On Friday, March 29, 2002, at 07:33 AM, Paul Tremblay wrote: > On Wed, Mar 27, 2002 at 09:05:02PM -0800, bob ackerman wrote: > >> i copie

Re: anonymous subroutine problem

2002-03-29 Thread bob ackerman
looks like you are accessing your array (argument to new()) at the second element ($_[1]) instead of first ($_[0]). On Friday, March 29, 2002, at 07:33 AM, Paul Tremblay wrote: > On Wed, Mar 27, 2002 at 09:05:02PM -0800, bob ackerman wrote: > >> i copied the code as is, and got no error. >> ar

Re: anonymous subroutine problem

2002-03-29 Thread Paul Tremblay
On Wed, Mar 27, 2002 at 09:05:02PM -0800, bob ackerman wrote: > i copied the code as is, and got no error. > are you sure line #29 is where you are calling $_incr_count->()? > are you sure the code you are executing is what you posted? > No apparently this is not the code that gives me the err

Re: anonymous subroutine problem

2002-03-27 Thread bob ackerman
i copied the code as is, and got no error. are you sure line #29 is where you are calling $_incr_count->()? are you sure the code you are executing is what you posted? On Wednesday, March 27, 2002, at 06:47 PM, Paul Tremblay wrote: > I am coppying the code below directly from *Object Oriented