--maximum-line-length=30
--variable-maximum-line-length
+==> b1280.in <==
+# S1
+ for my $method qw(GetBook Wishlist AddBook RemoveBook
+ PurchaseBooks) {
+ eval "sub $method";
+ *$method = sub {
+ my $self = shift->new;
+ die SOAP::Fault->faultcode('Server.RequestError')
+ ->faultstring('Could not get object')
+ unless $self;
+
+ my $smethod = "SUPER::$method";
+ my $res = $self->$smethod(@_);
+ die SOAP::Fault->faultcode('Server.ExecError')
+ ->faultstring("Execution error: $res")
+ unless ref($res);
+
+ $res;
+ };
+ }
+# S2
+ for my $method qw(GetBook Wishlist AddBook RemoveBook
+ PurchaseBooks)
+ {
+ eval "sub $method";
+ *$method = sub {
+ my $self = shift->new;
+ die SOAP::Fault->faultcode('Server.RequestError')
+ ->faultstring('Could not get object')
+ unless $self;
+
+ my $smethod = "SUPER::$method";
+ my $res = $self->$smethod(@_);
+ die SOAP::Fault->faultcode('Server.ExecError')
+ ->faultstring("Execution error: $res")
+ unless ref($res);
+
+ $res;
+ };
+ }
+
+==> b1280.par <==
+--brace-left-and-indent
+
==> b131.in <==
unless
( open( SCORE, "+>>$Score_File" ) )
$routput_token_type->[$i] = $type;
}
- $tok = $quote_character if ($quote_character);
+
+ # Removed to fix b1280. This is not needed and was causing the
+ # starting type 'qw' to be lost, leading to mis-tokenization of
+ # a trailing block brace in a parenless for stmt 'for .. qw.. {'
+ ##$tok = $quote_character if ($quote_character);
# scan for the end of the quote or pattern
(
@is_keyword{@Keywords} = (1) x scalar(@Keywords);
}
-1;