portability nit

-Yosh
This commit is contained in:
Manish Singh 1999-07-28 23:21:11 +00:00
parent 7cb07a90bf
commit 87f0717086
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Jul 28 16:17:29 PDT 1999 Manish Singh <yosh@gimp.org>
* tools/pdbgen/pdbgen.pl: eval "defined $_" -> eval "defined scalar $_"
(portability nit)
Wed Jul 28 15:03:28 PDT 1999 Manish Singh <yosh@gimp.org>
* plug-ins/common/plugin-defs.pl: add sample_colorize and

View File

@ -54,9 +54,9 @@ $evalcode = <<'CODE';
my $dest = shift;
foreach (@_) {
if (eval "defined $_") {
if (eval "defined scalar $_") {
(my $var = $_) =~ s/^(\W)//;
for ($1) {
for ($1) {
/\$/ && do { $$dest->{$var} = $$var ; last; };
/\@/ && do { $$dest->{$var} = [ @$var ]; last; };
/\%/ && do { $$dest->{$var} = { %$var }; last; };