Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPC 0022 Metaprogramming API #25

Merged
merged 11 commits into from
Dec 7, 2023
Prev Previous commit
Next Next commit
Fix type of coderef's sigil
  • Loading branch information
leonerd committed Aug 30, 2023
commit 680dcc59485fc145934861de43c605ce7508e133
2 changes: 1 addition & 1 deletion ppcs/ppc0022-metaprogramming.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ $metasymbol = $metapackage->get_symbol($name);

Returns a meta-symbol object instance to represent the symbol within the package, if such a symbol exists. If not either `undef` is returned or an exception is thrown.

The exact type of symbol that is returned depends on the first character of the `$name` parameter - i.e. the sigil. Sigils of `*`, `$`, `@`, `%` and `%` respectively will return a meta-symbol representing a glob itself, or the scalar, array, hash or code slots from it.
The exact type of symbol that is returned depends on the first character of the `$name` parameter - i.e. the sigil. Sigils of `*`, `$`, `@`, `%` and `&` respectively will return a meta-symbol representing a glob itself, or the scalar, array, hash or code slots from it.

(Direct access to the scalar, array, hash or code slots of the glob is provided as a shortcut convenience for the common cases. Access to other more exotic slots of the glob such as filehandles or formats will have to be performed via the metaglob object itself).

Expand Down