请告诉我这是什么意思
my ( $keepers, $bogus, $unknown ) =
TCO::Test::Param::test_params('session' => $s, 'expected' => $allowed_params);
关于测试方法
my %base_profile = TCO::Test::Param::std_profile();
my $profile = {
'session' => $base_profile{'session'},
'expected' => $base_profile{'params'},
};
my %config = validate( @_, $profile );
my ( $s, $gooduns ) = @config{ 'session', 'expected' };
my ( $keepers, $bogus, $unknown ) =
scrub_base( 'raw_params' => $s->{_raw_params}, 'expected' => $gooduns );
foreach ( keys %{$keepers} ) {
$keepers->{$_} = $keepers->{$_}->[-1];
}
clean_params( { 'params' => $keepers } );
# These are sometimes passed in by carts and must be squashed if they are.
delete $unknown->{x_exp_date} if ( $unknown->{x_exp_date} );
delete $unknown->{x_card_num} if ( $unknown->{x_card_num} );
delete $bogus->{x_exp_date} if ( $bogus->{x_exp_date} );
delete $bogus->{x_card_num} if ( $bogus->{x_card_num} );
delete $keepers->{x_exp_date} if ( $keepers->{x_exp_date} );
delete $keepers->{x_card_num} if ( $keepers->{x_card_num} );
return ( $keepers, $bogus, $unknown );
2) $sale->{state}{ind} = 0; 这是什么意思?
我试图打印$keepers
到 STDERR 。然后它给出一个哈希。我不能访问其中的值。我怎样才能访问它。请回复。