Skrevet av Emne: Perl: Globally demote or handle die()  (Lest 4725 ganger)

ATC

  • Gjest
Perl: Globally demote or handle die()
« på: 26. November 2009, 23:31 pm »
  • [applaud]0
  • [smite]0
  • When debugging a script which dies unexpectedly, it would sometimes be helpful to catch the die() and replace it with a warning so that variables etc. can be examined further.



    ATC

    • Gjest
    [Solved] Perl: Globally demote or handle die()
    « Svar #1 på: 26. November 2009, 23:31 pm »
  • [applaud]0
  • [smite]0
  • *CORE::GLOBAL::die = \&do_something_else