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