Revert "Simplify push_action_params()"

This reverts commit 34c788d67d.
This commit is contained in:
Tom Eastep 2011-07-01 16:34:55 -07:00
parent 7ffcca4cbd
commit 7cc2f91e66

View File

@ -1803,11 +1803,14 @@ sub embedded_perl( $ ) {
sub push_action_params( $ ) { sub push_action_params( $ ) {
my @params = split /,/, $_[0]; my @params = split /,/, $_[0];
my $oldparams = \@actparms; my $oldparams = \@actparms;
my $params = @params;
@actparms = (); @actparms = ();
@actparms[1..$params] = @params; for ( my $i = 1; $i <= @params; $i++ ) {
my $val = $params[$i - 1];
$actparms[$i] = $val eq '-' ? '' : $val eq '--' ? '-' : $val;
}
$oldparams; $oldparams;
} }