in reply to Overriding CORE::GLOBAL::warn/die
By the time Perl compiles the use warn; statement, it's already decided that the first warn refers to the builtin warn. Perl won't go back and recompile code it's already compiled when you override a keyword (that's not possible in some cases).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Overriding CORE::GLOBAL::warn/die
by clueless newbie (Curate) on Sep 21, 2012 at 18:53 UTC |
In Section
Seekers of Perl Wisdom