You are viewing the version of this documentation from Perl 5.24.4. View the latest version
evalbytes EXPR
evalbytes

This function is like eval with a string argument, except it always parses its argument, or $_ if EXPR is omitted, as a string of bytes. A string containing characters whose ordinal value exceeds 255 results in an error. Source filters activated within the evaluated code apply to the code itself.

evalbytes is available only if the "evalbytes" feature is enabled or if it is prefixed with CORE::. The "evalbytes" feature is enabled automatically with a use v5.16 (or higher) declaration in the current scope.