Subject: | Patch proposal - inc/My/Build/Base.pm |
Hi,
I have experienced the following error on my Win32 Strawberry 5.12.0-RC0 box when building Alien-wxWidgets-0.50_02:
String found where operator expected at inc/My/Build/Base.pm line 478, near "croak "system: @_: $?""
(Do you need to predeclare croak?)
syntax error at inc/My/Build/Base.pm line 478, near "croak "system: @_: $?""
Compilation failed in require at Build.PL line 138.
The following patch to inc/My/Build/Base.pm fixes the problem:
--- Base.pm.orig Mon Mar 29 15:55:50 2010
+++ Base.pm Mon Mar 29 15:56:09 2010
@@ -475,7 +475,7 @@
my $ret;
$ret = @_ > 1 ? system @_ : system $_[0];
- $ret and croak "system: @_: $?";
+ $ret and croak("system: @_: $?");
}
1;
--
kmx
I have experienced the following error on my Win32 Strawberry 5.12.0-RC0 box when building Alien-wxWidgets-0.50_02:
String found where operator expected at inc/My/Build/Base.pm line 478, near "croak "system: @_: $?""
(Do you need to predeclare croak?)
syntax error at inc/My/Build/Base.pm line 478, near "croak "system: @_: $?""
Compilation failed in require at Build.PL line 138.
The following patch to inc/My/Build/Base.pm fixes the problem:
--- Base.pm.orig Mon Mar 29 15:55:50 2010
+++ Base.pm Mon Mar 29 15:56:09 2010
@@ -475,7 +475,7 @@
my $ret;
$ret = @_ > 1 ? system @_ : system $_[0];
- $ret and croak "system: @_: $?";
+ $ret and croak("system: @_: $?");
}
1;
--
kmx