From: Nick J. <nic...@gm...> - 2006-09-26 08:10:02
|
On 25/09/06, Mark Dootson <mar...@zn...> wrote: > Hi Nick, > > There is something else happening here. > The demo stuff works for me as is. > > A quick check in the perldocs confirms that just having > use base qw(Wx::Frame Class::Accessor::Fast); > > should work OK without any need to 'use'. > > It would be interesting to know what's causing it to fail on your > machine. What error message do you get? > > It works here on ActivePerl build 817, Class::Accessor version 0.26 > Sorry, user error. I didn't have Class::Accessor::Fast installed so I got the message: Base class package "Class::Accessor::Fast" is empty. (Perhaps you forgot to 'use' the module which defines that package first.) I added the 'use', which got rid of that error, but then complained that Class/Accessor/Fast.pm couldn't be found in @INC, so I suppose I assumed that the lack of 'use' was an issue. (Though I did think it was a bit un-Perlish.) Thanks, and sorry for wasting your time, Nick |