|Perl Language Reference Manual|
by Larry Wall and others
Paperback (6"x9"), 724 pages
RRP £29.95 ($39.95)
Sales of this book support The Perl Foundation! Get a printed copy>>>
Ambiguous call resolved as CORE::%s(), qualify as such or use &
(W ambiguous) A subroutine you have declared has the same name as a Perl keyword, and you have used the name without qualification for calling one or the other. Perl decided to call the builtin because the subroutine is not imported.
To force interpretation as a subroutine call, either put an ampersand
before the subroutine name, or qualify the name with its package.
Alternatively, you can import the subroutine (or pretend that it's
imported with the
use subs pragma).
To silently interpret it as the Perl operator, use the
on the operator (e.g.
CORE::log($x)) or declare the subroutine
to be an object method (see 8.12 or
"Get/set subroutine or variable attributes" (attributes) in the Perl Library Reference Manual (Volume 1)).
|ISBN 9781906966027||Perl Language Reference Manual||See the print edition|