```{index} single: opnumber; B function ``` ```{index} single: B::opnumber; Perl function ``` # opnumber Return the numeric op-type for an op name, or `-1` if unknown. ## Synopsis ```perl my $n = B::opnumber("print"); # numeric type my $n = B::opnumber("pp_print"); # leading "pp_" is tolerated ``` Accepts either the bare name or the `pp_`-prefixed form. The returned integer is an index into perl's global op-name / op-desc tables and is the value `B::OP::type` produces.