Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm working with a custom module when a script that uses it hung for no apparent reason. Tried to restart and it just sits there doing nothing. Run the Test::Simple script for the module and it hangs here:
ok( $x->isa("My::Module"), 'ISA');
Now some of the module's methods work as expected but some of them just hang. The module usually works perfectly and was not changed so this is just weird. What did I break? Thank you for your help.

Replies are listed 'Best First'.
Re: Module mysteriously stopped working
by ikegami (Patriarch) on May 30, 2018 at 18:00 UTC

    Sounds like there's an loop in the inheritance chain? I don't see why else that would hang.

    Please provide the contents of @ISA of that class (print "@ISA\n";), then for each listed class, the contents of that class's @ISA. etc.

      Turns out the module uses a system command on OSX and causes IT to hang. Once it hangs that command will not work again until the machine is rebooted. Sorry for the false alarm.

        There are few OS X monks and I think we'd all love to hear which command hanged the machine for reference and possible investigation or caution.

      Thank you for the rapid response!
      perl -MMy::Module -le 'print @My::Module::ISA'
      Exporter