for any script which is normally invoked with C<perl -x>.
Please note: do not use this flag unless you are sure your script needs it.
-Parsing errors can occur if it does not have a hash-bang. For example, if the
-actual first hash-bang is in a here-doc, a parsing error will occur because the
-tokenization will begin in the middle of the here-doc.
+Parsing errors can occur if it does not have a hash-bang, or, for example, if
+the actual first hash-bang is in a here-doc. In that case a parsing error will
+occur because the tokenization will begin in the middle of the here-doc.
=item Making a file unreadable
$rtoken_vars->[_TOKEN_] = $token;
}
- # change code type to be NIN at a here target to avoid breaking the line
- elsif ( $type eq 'h' ) {
-
- # 'VB' = Verbatim - line goes out verbatim
- # 'FS' = Format Skipping - line goes out verbatim, no blanks
- # 'IO' = Indent Only - only indentation may be changed
- unless ( $CODE_type && $CODE_type =~ /^(VB|FS|IO)$/ ) {
- $CODE_type = 'NIN';
- $line_of_tokens->{_code_type} = $CODE_type;
- }
- }
-
# patch to add space to something like "x10"
# This avoids having to split this token in the pre-tokenizer
elsif ( $type eq 'n' ) {
}
}
else {
- $strength = NO_BREAK;
+ $strength = NO_BREAK + 1;
}
#---------------------------------------------------------------
-# must not break first line regardless of value of maximum-line-length
+# must not break after here target regardless of maximum-line-length
$sth = $dbh->prepare(<<"END_OF_SELECT") or die "Couldn't prepare SQL";
SELECT COUNT(duration),SUM(duration)
FROM logins WHERE username='$user'
-# must not break first line regardless of value of maximum-line-length
-$sth = $dbh->prepare(<<"END_OF_SELECT") or die "Couldn't prepare SQL";
+# must not break after here target regardless of maximum-line-length
+$sth = $dbh->prepare(
+ <<"END_OF_SELECT") or die "Couldn't prepare SQL";
SELECT COUNT(duration),SUM(duration)
FROM logins WHERE username='$user'
END_OF_SELECT
-# must not break first line regardless of value of maximum-line-length
+# must not break after here target regardless of maximum-line-length
$sth= $dbh->prepare (<<"END_OF_SELECT") or die "Couldn't prepare SQL" ;
SELECT COUNT(duration),SUM(duration)
FROM logins WHERE username='$user'
../snippets21.t nib.nib2
../snippets21.t scbb-csc.def
../snippets21.t scbb-csc.scbb-csc
+../snippets21.t here_long.def
+../snippets22.t here_long.here_long
../snippets3.t ce_wn1.ce_wn
../snippets3.t ce_wn1.def
../snippets3.t colin.colin
../snippets9.t rt98902.def
../snippets9.t rt98902.rt98902
../snippets9.t rt99961.def
-../snippets21.t here_long.def
-../snippets22.t here_long.here_long
----------
'here_long' => <<'----------',
-# must not break first line regardless of value of maximum-line-length
+# must not break after here target regardless of maximum-line-length
$sth= $dbh->prepare (<<"END_OF_SELECT") or die "Couldn't prepare SQL" ;
SELECT COUNT(duration),SUM(duration)
FROM logins WHERE username='$user'
source => "here_long",
params => "def",
expect => <<'#19...........',
-# must not break first line regardless of value of maximum-line-length
+# must not break after here target regardless of maximum-line-length
$sth = $dbh->prepare(<<"END_OF_SELECT") or die "Couldn't prepare SQL";
SELECT COUNT(duration),SUM(duration)
FROM logins WHERE username='$user'
$rsources = {
'here_long' => <<'----------',
-# must not break first line regardless of value of maximum-line-length
+# must not break after here target regardless of maximum-line-length
$sth= $dbh->prepare (<<"END_OF_SELECT") or die "Couldn't prepare SQL" ;
SELECT COUNT(duration),SUM(duration)
FROM logins WHERE username='$user'
source => "here_long",
params => "here_long",
expect => <<'#1...........',
-# must not break first line regardless of value of maximum-line-length
-$sth = $dbh->prepare(<<"END_OF_SELECT") or die "Couldn't prepare SQL";
+# must not break after here target regardless of maximum-line-length
+$sth = $dbh->prepare(
+ <<"END_OF_SELECT") or die "Couldn't prepare SQL";
SELECT COUNT(duration),SUM(duration)
FROM logins WHERE username='$user'
END_OF_SELECT