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: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.
> 
> @$self->{resize_list} is parsed by perl as
> (@$self)->{resize_list}, so the
> error message is correct; $self is not an array
> reference.
> 
> You should do this instead: @{$self->{resize_list}}.
> 
> BTW, this has nothing to do with Apache.  You would
> get the same error
> running on the command line.
> 
> Ronald
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to