opnumber#

Return the numeric op-type for an op name, or -1 if unknown.

Synopsis#

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.