You might want to attach the cgi program for others to look at. Otherwise, we can guess that it is because the variable $framistan does not contain a Widget::Object instance. However, I do not believe in this case that will help much.