$SIG{__WARN__} = sub {
if ($_[0] =~ /^Invalid conversion/) {
- $w = ' INVALID'
+ $w = ' INVALID'
} else {
- warn @_;
+ warn @_;
}
};
$x = sprintf(">$template<",
defined @$evalData ? @$evalData : $evalData);
substr($x, -1, 0) = $w if $w;
- ($y = $x) =~ s/([Ee][-+])0(\d)/$1$2/g; # $y has 3 exponent digits, not 2
+ # $y may have 3 exponent digits, not 2
+ my $r;
+ if (($y = $x) =~ s/([Ee][-+])0(\d)/$1$2/g) {
+ $y =~ s/^>\s+/>/;
+ $y =~ s/\s+<$/</;
+ $r = $result;
+ $r =~ s/^\s+//;
+ $r =~ s/\s+$//;
+ }
+
if ($x eq ">$result<") {
print "ok $i\n";
}
- elsif ($y eq ">$result<") # Some C libraries always give
- { # three-digit exponent
- print("ok $i >$result< $x # three-digit exponent accepted\n");
- }
+ elsif ($r and $y eq ">$r<") # Some C libraries always give
+ { # three-digit exponent
+ print("ok $i >$result< $x # three-digit exponent accepted\n");
+ }
else {
- print("not ok $i >$template< >$data< >$result< $x",
- $comment ? " # $comment\n" : "\n");
+ print("not ok $i >$template< >$data< >$result< $x",
+ $comment ? " # $comment\n" : "\n");
}
}
copy ..\README.os2 ..\pod\perlos2.pod
copy ..\vms\perlvms.pod ..\pod\perlvms.pod
cd ..\pod && $(MAKE) -f ..\win32\pod.mak converters
+ cd ..\lib && $(PERLEXE) lib_pm.PL
$(PERLEXE) $(PL2BAT) $(UTILS)
distclean: clean
{
#ifdef USE_SOCKETS_AS_HANDLES
#if defined(USE_THREADS) || defined(USE_ITHREADS)
- dTHX;
+ dTHXo;
if (!w32_init_socktype) {
#endif
int iSockOpt = SO_SYNCHRONOUS_NONALERT;