Prima::tutorial and Prima::MainWindow derived class example not working on XP and ActivePerl

From: David Christensen <dpchrist_at_holgerdanske.com>
Date: Wed, 9 Apr 2008 21:09:08 -0700
To: <prima_at_BSD-Dk.dk>

Prima:

I am running Windows XP Professional SP2 with all current patches,,
ActivePerl-5.8.8.822-MSWin32-x86-280952.msi, prigraph.dll 306 KB
10/1/2005 1:38 PM, and Prima-1.23-MSWin32-588.zip. I have cut/pasted
the Prima tutorial examples from:

    http://search.cpan.org/~karasik/Prima-1.24/pod/Prima/tutorial.pod

When I try to run the example that derives MyWindow from
Prima::MainWindow, it fails with several error messages (see console
session, below).

Any suggestions?

TIA,

David

C:\Documents and Settings\dpchrist\My Documents\prima>type
menu-actions.pl
#! /usr/bin/perl -w
use strict;
package MyWindow;
use vars qw(@ISA);
@ISA = qw(Prima::MainWindow);
sub action
{
    my ( $self, $menu_item) = @_;
    print "hey! $menu_item called me!\n"
}
my $window = MyWindow-> new(
    menuItems => [
        [ '~File' => [
        ['~Action', q(action) ],
        ]],
    ],
);

C:\Documents and Settings\dpchrist\My Documents\prima>perl
menu-actions.pl
Can't locate package Prima::MainWindow for @MyWindow::ISA at
menu-actions.pl lin
e 11.
Can't locate package Prima::MainWindow for @MyWindow::ISA at
menu-actions.pl lin
e 11.
Can't locate object method "new" via package "MyWindow" at
menu-actions.pl line
11.
Received on Thu 10 Apr 2008 - 06:09:08 CEST

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET