> I am pretty sure that this was how I had sent it out. Did I have a type-o
> somewhere?
> 
> I tried this on my box but got the error......
> Can't locate object method "new" via package "CardLayout" at
> D:\web\perlgui\newCard.pl line 12.
> 
> I just thought that I had some environmental variable set incorrectly. Any
> suggestions as to why this didn't work originally with 'use
> Win32::GUI::CardLayout' and 'package Win32::GUI::CardLayout' ??

As I said "DO BE CONSISTENT".

...\perl\site\lib\Win32\GUI\CardLayout.pm
ppackage Win32::GUI::CardLayout;
...
uuse Win32::GUI::CardLayout;
...
  $x = new Win32::GUI::CardLayout ...

OR
 
...\perl\site\lib\CardLayout.pm
ppackage CardLayout;
...
uuse CardLayout;
...
  $x = new CardLayout ...

Nothing inbetween.

Jenda
== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
 The phenomenon of UFO doesn't say anything about
    the presence of intelligence in space.
  It just shows how rare it is here on the earth.
                                    A.C.Clarke

Reply via email to