検索条件
全1件
(1/1ページ)
[AutoLoader] Can't modify undef operator in scalar assignment at lib/SatsukiApp/adiary_4.pm line 925, near "undefといったエラーが出るようになりました。FreeBSD 13.0R + Perl 5.32 の環境までは発生しない。
}"
Compilation failed in require at lib/Satsuki/AutoLoader.pm line 42.
sub void_plugin_images {
my $self = shift;
my $h = shift;
my $form = shift;
foreach(keys(%$form)) {
if ($_ !~ /^(\w+)_void$/) { next; }
if (! $form->{$_}) { next; }
my $n = $1;
$h->{$n} = undef
$h->{"${n}_w"} = undef
$h->{"${n}_h"} = undef
}
}
と、なっているところを
sub void_plugin_images {
my $self = shift;
my $h = shift;
my $form = shift;
foreach(keys(%$form)) {
if ($_ !~ /^(\w+)_void$/) { next; }
if (! $form->{$_}) { next; }
my $n = $1;
$h->{$n} = undef ;
$h->{"${n}_w"} = undef ;
$h->{"${n}_h"} = undef ;
}
}
とすると、回避出来ました。これが正しいのかどうかは判りません。