At 6:38 PM -0500 1/24/00, Amir Karger wrote:
>On Mon, Jan 24, 2000 at 06:14:12PM -0500, Larry Moore wrote:
> > --
> > [ File gin.pl; Line 71: Can't locate object method "new" via package
> > "Games::Cards::Hand".
> > File klondike.pl; Line 102: Can't locate object method "new" via package
> > "Games::Cards::Undo".
> > ]
> >
>
>First of all, this didn't happen on other platforms, and I don't *think* I'm
>using anything remotely platform specific. (I guess that's what cpan-testers
>is for.)
As you just saw, it works for me on my iBook. However, Larry is
using an older machine running on a different CPU architecture and an
older version of MacOS.
>Second, Games::Cards is now at v1.36. There's a teensy tiny chance that that
>will make a difference.
>
> > Summary of my perl5 (5.0 patchlevel 4 subversion 0) configuration:
>
>Is there any possibility that your 5.004 is missing something in 5.004_04,
>which is what I have? (I didn't really think so.)
>
>I'm afraid I'm going to need help from Mac gurus on this one: this is
>working on my RH Linux 5.2 and has been tested on linuxppc, too. In fact,
>v1.34 worked with solaris and hpux, too.
>
>The lines in question are (were):
>my $hand = new Games::Cards::Hand "Player $i" ;
>my $Undo = new Games::Cards::Undo; (klondike.pl 102)
>
>Is it possible that mac "new" absolutely requires paretheses for its
>arguments (or lack thereof)?
I've seen problems like this before, and I'm trying to remember if I
ever saw them on one of my PPC Macs or not. I don't think so. On
the 68k, on rare occasion MacPerl would become confused and either
not find "new" or find the wrong one. (I notice you define lots of
packages and several sub new's all in one file). Larry, try 1.36 and
see if it works. If not, changes those two lines to
my $hand = Games::Cards::Hand->new("Player $i");
my $Undo = Games::Cards::Undo->new;
As I recall, I had to at one point make similar changes to the
MacPerl port of LWP.
>
>HELP!
>
>Anyway, thanks for testing,
>
>-Amir
--
Paul Schinder
[EMAIL PROTECTED]