die unless $code;
- my $sub = $self->compile($code, no_mangling => 1);
+ my %opts = map { $_ => 1 } (split /\s+/, $opts);
+
+ my $sub = $self->compile($code, no_mangling => !delete($opts{"-mangle"}) );
if ( $self->is_error($sub) ) {
return $self->format($sub);
open my $fh, ">", \my $out;
{
local *STDOUT = $fh;
- B::Concise::compile((split /\s+/, $opts), $sub)->();
+ B::Concise::compile(keys %opts, $sub)->();
}
return $out;