This function is similar to astring eval, except it always parses its argument (or$_
if EXPR is omitted) as a byte string. If the string contains any code points above 255, then it cannot be a byte string, and theevalbytes
will fail with the error stored in$@
.
use utf8
andno utf8
within the string have their usual effect.
Source filters activated within the evaluated code apply to the code itself.
evalbytes
is available starting in Perl v5.16. To access it, you must sayCORE::evalbytes
, but you can omit theCORE::
if the"evalbytes"
feature is enabled. This is enabled automatically with ause v5.16
(or higher) declaration in the current scope.
Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.
The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.