Revision d7420ba8
Von Sven Schöling vor mehr als 16 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
3223 | 3223 |
$main::lxdebug->leave_sub(); |
3224 | 3224 |
} |
3225 | 3225 |
|
3226 |
sub backup_vars { |
|
3227 |
$main::lxdebug->enter_sub(); |
|
3228 |
my $self = shift; |
|
3229 |
my @vars = @_; |
|
3230 |
|
|
3231 |
map { $self->{_VAR_BACKUP}->{$_} = $self->{$_} if $self->{$_} } @vars; |
|
3232 |
|
|
3233 |
$main::lxdebug->leave_sub(); |
|
3234 |
} |
|
3235 |
|
|
3236 |
sub restore_vars { |
|
3237 |
$main::lxdebug->enter_sub(); |
|
3238 |
|
|
3239 |
my $self = shift; |
|
3240 |
my @vars = @_; |
|
3241 |
|
|
3242 |
map { $self->{$_} = $self->{_VAR_BACKUP}->{$_} if $self->{_VAR_BACKUP}->{$_} } @vars; |
|
3243 |
|
|
3244 |
$main::lxdebug->leave_sub(); |
|
3245 |
} |
|
3246 |
|
|
3226 | 3247 |
1; |
Auch abrufbar als: Unified diff
Weitere, nicht ganz so behutsame Codesaeuberungen.