RE: modperl not recognizing array reference

2006-01-12 Thread Carmichael, Lee
> -Original Message- > From: Michael Greenish [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 12, 2006 1:46 PM > To: modperl@perl.apache.org > Subject: RE: modperl not recognizing array reference > > Since I am passing a reference to an anonymous hash > whe

Re: modperl not recognizing array reference

2006-01-12 Thread Michael Greenish
Well, that was definitely it. I did try wrapping in {} but I guess I got a cached output because I still got the error. This time, I restarted apache and didn't get the error. Thanks for getting me unstuck!!! greanie --- Ronald J Kimball <[EMAIL PROTECTED]> wrote: > On Thu, Jan 12, 2006 at 11

RE: modperl not recognizing array reference

2006-01-12 Thread Michael Greenish
Since I am passing a reference to an anonymous hash when calling the new method, the @_ only contains one element, that reference. The '$objRef = shift;' in the constructor brings the hash ref into the function. When I print out the $self in my resize function, I see the list, so it definitely ex

Re: modperl not recognizing array reference

2006-01-12 Thread Ronald J Kimball
On Thu, Jan 12, 2006 at 11:09:32AM -0800, Michael Greenish wrote: > sub resizeImgs { > my $self = shift; > foreach my $file( @$self->{resize_list} ) { > ... > > I get the following error: > > Not an ARRAY reference at > /http/greanie/perl-lib/Ishare/Classes/ImageClass.pm > line 193. @$s

RE: modperl not recognizing array reference

2006-01-12 Thread Carmichael, Lee
> This should be very easy but apache is not letting me > do this. I have a list of file names stored in an > array. The list is created as follows: > > push @resizeList, $img->{path} . $img->{file}; > > > The list is passed to a package via a new method as > follows: > > my $imageResize

Re: modperl not recognizing array reference

2006-01-12 Thread Harry Zhu
try @{$self->{resize_list}} ? Harry Zhu GreatLodge.com - Original Message - From: "Michael Greenish" <[EMAIL PROTECTED]> To: Sent: Thursday, January 12, 2006 1:09 PM Subject: modperl not recognizing array reference Hello, This should be very easy but apache is not letting me do th