call

# given sub { (shift // 0) + 1 }

$code->call; # 1
$code->call(0); # 1
$code->call(1); # 2
$code->call(2); # 3

The call method executes and returns the result of the code. This method returns a data type object to be determined after execution.

call(Any $arg1) : Any

method

5 POD Errors

The following errors were encountered while parsing the POD:

Around line 10:

Unknown directive: =name

Around line 14:

Unknown directive: =usage

Around line 23:

Unknown directive: =description

Around line 28:

Unknown directive: =signature

Around line 32:

Unknown directive: =type