Text-Reform
view release on metacpan or search on metacpan
lib/Text/Reform.pm view on Meta::CPAN
if (@_ > 1) # TEMPORARY RESET
{
$config = {%$config, %{$_[$startidx++]}};
fix_config(%$config);
$startidx = 1;
}
elsif (defined wantarray) # CONTEXT BEING CAPTURED
{
$_[0]->{_prev} = { %std_config };
$_[0]->{_used} = 0;
$_[0]->{_line} = join " line ", (caller)[1..2];;
%{$_[0]} = %std_config = (%std_config, %{$_[0]});
fix_config(%std_config);
return bless $_[0], 'FormOpt';
}
else # PERMANENT RESET
{
$_[0]->{_used} = 1;
$_[0]->{_line} = join " line ", (caller)[1..2];;
%std_config = (%std_config, %{$_[0]});
fix_config(%std_config);
return;
}
}
$config->{pagenum} = do{\(my $tmp=1)}
unless defined $config->{pagenum};
$std_config{_used}++;
my @ref = map { ref } @_;
( run in 0.492 second using v1.01-cache-2.11-cpan-a3c8064c92c )