On Feb 4, 2008 8:25 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I made an image object $mask_list and pushed several images in it. > The internal structure seems ok because $mask_list->Write('test.jpg') > delivers all the images with an index in the right sequence. > Later I want to refer to the single images in the list with > $mask = $mask_list[$j] but if I test it for example with > $mask_list[0]->Write('test.jpg') I got the error message: > Can't call method "Write" on an undefined value. Did someone > see what went wrong? Thanks.
There's a better than 90% chance that you forgot to put 'use strict' and 'use warnings' lines above your code. use strict; use warnings; If you get an error message that you're not sure about, see what the perldiag manpage says about it. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/