in reply to Re: Desperatly seeking CSW (Class::Std Wisdom)
in thread Desperatly seeking CSW (Class::Std Wisdom)


That is a good point. I can't believe I overlooked showing an example of the call that I am making.

my $state_arguments = { 'form_data' => \%form_data }; my $state_manager = My::Class->new($state_arguments); my $welcome_handler = { 'trigger' => 'welcome', 'handler' => 'Handler::Welcome', }; $state_manager->register_handler($welcome_handler);
That is when I get the error message.

Replies are listed 'Best First'.
Re^3: Desperatly seeking CSW (Class::Std Wisdom)
by stvn (Monsignor) on Aug 08, 2006 at 15:19 UTC

    I am not getting the same error when I run this code:

    Which seems to confirm my suspicion that the problem is elsewhere in your class. The error you are tripping in Class::Std is in one of the (IMHO) darker corners of the module. Something as simple as what you have demonstrated in the OP should not be causing that error. Perhaps if you posted your entire class, the issue might be more obvious to spot.



      I figured out what was going on. Originally I was calling all of these methods from a web-based script. The server cached one of these temp files and that is where the problem has been. I actually solved this particular issue along time ago. When I went and did what you did (command-line script) the problem disappeared. It also prompted me to get a Apache Reboot as well. Thank you for your time.