in reply to Re: Overriding built-in function works only via import()?
in thread Overriding built-in function works only via import()?
Hence the perldocs should be clearer:
> perlsub#Overriding-Built-in-Functions Overriding may be done only by importing the name from a module at compile time--ordinary predeclaration isn't good enough.
A module is a .pm which supports importing with use It's normal practice to have its own package, but not necessarily so.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Overriding built-in function works only via import()?
by haukex (Archbishop) on Feb 02, 2018 at 10:02 UTC |