Репозитории ALT
S: | 0.86-alt1 |
5.1: | 0.45-alt1 |
4.1: | 0.44-alt2.1 |
4.0: | 0.44-alt2.1 |
3.0: | 0.44-alt2.1 |
Группа :: Разработка/Perl
Пакет: perl-Inline
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: perl-Inline-0.44-mdk-underscore-localization.patch
Скачать
Скачать
--- Inline-0.44~/lib/Inline/denter.pm 2001-06-13 04:30:50 +0000
+++ Inline-0.44/lib/Inline/denter.pm 2004-05-17 11:51:51 +0000
@@ -179,7 +179,7 @@ sub _undent_undef {
sub _next_line {
my $o = shift;
$o->{done}++, $o->{level} = -1, return unless @{$o->{lines}};
- $_ = shift @{$o->{lines}};
+ local $_ = shift @{$o->{lines}};
$o->{line}++;
}
@@ -188,7 +188,7 @@ sub _setup_line {
$o->{done}++, $o->{level} = -1, return unless @{$o->{lines}};
my ($width, $tabwidth) = @{$o}{qw(width tabwidth)};
while (1) {
- $_ = $o->{lines}[0];
+ local $_ = $o->{lines}[0];
# expand tabs in leading whitespace;
$o->next_line, next if /^(\s*$|\#)/; # skip comments and blank lines
while (s{^( *)(\t+)}
@@ -211,7 +211,7 @@ sub indent {
my $stream = '';
$o->{key} = '';
while (@_) {
- $_ = shift;
+ local $_ = shift;
$stream .= $o->indent_name($_, shift), next
if (/^\*$package\::\w+$/);
$stream .= $o->indent_data($_);
@@ -221,7 +221,7 @@ sub indent {
sub indent_data {
my $o = shift;
- $_ = shift;
+ local $_ = shift;
return $o->indent_undef($_)
if not defined;
return $o->indent_value($_)