JSPL
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/JSPL/Controller.pm view on Meta::CPAN
package
JSPL::PerlSub; # Hide from PAUSE
sub _const_sub { # Method call
my $code = $_[1];
my $frame = $] > 5.009 ? 1 : 2;
JSPL::Context->check_privileges;
my($package, $file, $line, $hints, $bitmask) = (caller $frame)[0,1,2,8,9];
# warn sprintf("SBB: $package,$file,$line,'$code', H: %x, BM: %s\n", $hints,$bitmask);
my $cr = eval join("\n",
qq|package $package;BEGIN {\$^H=$hints;\${^WARNING_BITS}="$bitmask";}|,
"#line $line $file",
"sub {$code}") or Carp::croak("Can't compile: $@");
return $cr;
}
sub prototype {}
our $wantarray = 1;
sub toString {
my $code = shift || $JSPL::This;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.538 second using v1.00-cache-2.02-grep-82fe00e-cpan-2ea8abbae53 )