format
# given Foo::Bar
$name->format('file', '%s.t'); # foo__bar.t
# given Foo::Bar
$name->format('path', '%s.pm'); # Foo/Bar.pm
The format method called the specified method and passes the result to the core "sprintf" in perlfunc function with the string representation of itself as the argument
format(Str $method, Str $format) : Str
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 24:
Unknown directive: =description
- Around line 30:
Unknown directive: =signature
- Around line 34:
Unknown directive: =type