Name

Invoke

Synopsis

$obj->Invoke(method, args)

This object method calls the given method for $ obj with args as arguments. It is useful for invoking methods that would interfere with predefined names in Perl, or methods that contain characters that Perl can’t recognize. You can also use Invoke to call an object’s default method by using either undef or an empty string (“”) as the first argument.

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.