in reply to Dereferencing of built-ins with crappy names
Anywhere you'd put an identifier (or chain of identifiers) as part of a variable or subroutine name, you can replace the identifier with a simple scalar variable containing a reference of the correct type - perlrefAbout identifiers:
If working under the effect of the "use utf8;" pragma, the following rules apply:That is, a "start" character followed by any number of "continue" characters. Perl requires every character in an identifier to also match "\w" (this prevents some problematic cases); and Perl additionally accepts identfier names beginning with an underscore. If not under "use utf8", the source is treated as ASCII + 128 extra controls, and identifiers should match/ (?[ ( \p{Word} & \p{XID_Start} ) + [_] ]) (?[ ( \p{Word} & \p{XID_Continue} ) ]) * /x- perldata, "Identifier parsing"/ (?aa) (?!\d) \w+ /x
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dereferencing of built-ins with crappy names
by Anonymous Monk on Jul 10, 2015 at 19:45 UTC |