I try to load the configuration file into a hash during mine PerlChildInitHandler, and then access the values from PerlResponseHandler. However, although the process number is the same, it seems that the variables changed during the call child_init()revert to the default values during the call handler().
PerlChildInitHandler
PerlResponseHandler
child_init()
handler()
The main scenario:
package StartupLog; # the variable I'm testing my $sticky = 0; sub child_init { $sticky = 1; return 0; } sub handler { warn __PACKAGE__ . " sticky = $sticky\n"; ### always says "0" but should say "1" return 0; } 1;
, PerlPostConfigHandler, , , . , - , PerlChildInitiHandler, , , . , - .
, - , (, $My:: variable = 'lols'). , . , ?
Source: https://habr.com/ru/post/1760475/More articles:Visual Studio Portable - portabilityRails 3 and unobtrusive javascript - unobtrusive-javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1760471/emacs-command-to-indent-code-by-4-spaces-to-format-for-paste-into-stackoverflow-posts&usg=ALkJrhgZqeQ8QJzZpaOiMXuy8LqGJUrOHQSpring-WS vs JAX-WS - web-servicesHow to uniquely identify an nsmanged object with a string? - iphoneThe structure and format of Skype history databases - databaseПодсчитайте количество отмеченных флажков и покажите их на фиксированном div, используя jQuery - jquery400 bad request from twilio REST API using twilio-ruby - restHow to raise an attached event in wpf? - c #.NET Layered Design LINQ - .netAll Articles