}
my %ops;
+
$ops{$_} = 1 for scalops;
$ops{$_} = 0 for qw/stub nextstate/;
$ops{$_} = 1 for qw/padsv/;
$ops{$_} = 'list' for qw/padhv rv2hv/;
$ops{$_} = 'list' for qw/padany flip match entereval readline/;
+$ops{each} = { 0 => 0.5, 2 => 0.5 };
+$ops{stat} = { 0 => 0.5, 13 => 0.5 };
+
+$ops{caller} = sub { my @a = caller 0; scalar @a }->();
+$ops{localtime} = do { my @a = localtime; scalar @a };
+$ops{gmtime} = do { my @a = gmtime; scalar @a };
+
+$ops{$_} = { 0 => 0.5, 10 => 0.5 } for map "gpw$_", qw/nam uid ent/;
+$ops{$_} = { 0 => 0.5, 4 => 0.5 } for map "ggr$_", qw/nam gid ent/;
+$ops{$_} = 'list' for qw/ghbyname ghbyaddr ghostent/;
+$ops{$_} = { 0 => 0.5, 4 => 0.5 } for qw/gnbyname gnbyaddr gnetent/;
+$ops{$_} = { 0 => 0.5, 3 => 0.5 } for qw/gpbyname gpbynumber gprotoent/;
+$ops{$_} = { 0 => 0.5, 4 => 0.5 } for qw/gsbyname gsbyport gservent/;
+
sub enter {
my ($self, $cv) = @_;
my $n = name($op);
my $meth = $self->can('pp_' . $n);
return $self->$meth($op) if $meth;
- return $ops{$n} => 0 if exists $ops{$n};
+ if (exists $ops{$n}) {
+ my $r = $ops{$n};
+ $r = { %$r } if ref $r eq 'HASH';
+ return $r => 0;
+ }
if ($op->flags & OPf_KIDS) {
my @res = (0);