I decapitate the package using the technique at the beginning of “How can I defuse an instance method in Perl?” . The problem I am facing is that the original subroutine used a mypackage-level variable that apparently does not have access to the corrected subroutine, either by the full path specification, or by implicit use.
my
Is there a way to access the data specified in this way for use in a fixed routine?
You can get vocabulary using PadWalker . Evil, but it works.
No. What you're wrong - this package is not . A lexical variable is, by definition, limited to its lexical domain, in other words, the block in which it is located.
(.. "my" ) ( ), . , .
/, , var, var - .
, " ". . var "", "", .
Source: https://habr.com/ru/post/1702161/More articles:Partial Parsing Assessment - macrosCommand to provide a list of JREs installed on the system - javaASP.NET Controls and General Elements - genericsAm I the discoverer of a bug in the WPF engine? - wpfВозврат объекта JSON из PageMethod с пользовательским форматированием - jsonNULL vs The default value in the SQL Server database is .netThe standard queue of the template library of the C ++ standard library throws an exception with the message "Invalid heap" - c ++LINQ to SQL Query Query - sqlDownload the context / servlet when starting in Tomcat * WITHOUT * changing the deployment descriptor (web.xml) - tomcatКак оценить производительность Ethernet? - performanceAll Articles