do
# given file syntax
do 'file.pl'
# given block syntax
do { @{"${class}::ISA"} }
# given func-args syntax
do('array', [1..4]); # Data::Object::Array
The do function is a special constructor function that is automatically exported into the consuming package. It overloads and extends the core "do" in perlfunc function, supporting the core functionality and adding a new feature, and exists to dispatch to exportable Data-Object functions and other dispatchers.
do(Str $arg1, Any @args) : Any
function
5 POD Errors
The following errors were encountered while parsing the POD:
- Around line 12:
Unknown directive: =name
- Around line 16:
Unknown directive: =usage
- Around line 30:
Unknown directive: =description
- Around line 38:
Unknown directive: =signature
- Around line 42:
Unknown directive: =type