git.shiar.nl
/
perl
/
plp
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new maintainer: shiar
[perl/plp/.git]
/
PLP.pm
diff --git
a/PLP.pm
b/PLP.pm
index 2f9db4d6ea3a832c62e091f237168626d2ae8a0e..6d6a520d0cc78c353f4a99c128449f8c4903cb70 100644
(file)
--- a/
PLP.pm
+++ b/
PLP.pm
@@
-14,7
+14,7
@@
use Cwd ();
use strict;
use strict;
-our $VERSION = '3.1
7
';
+our $VERSION = '3.1
8
';
# Subs in this package:
# _default_error($plain, $html) Default error handler
# Subs in this package:
# _default_error($plain, $html) Default error handler
@@
-68,7
+68,7
@@
sub cgi_init {
delete @ENV{
qw(PATH_TRANSLATED SCRIPT_NAME SCRIPT_FILENAME PATH_INFO),
delete @ENV{
qw(PATH_TRANSLATED SCRIPT_NAME SCRIPT_FILENAME PATH_INFO),
- grep
{ /^REDIRECT_/ }
keys %ENV
+ grep
/^REDIRECT_/,
keys %ENV
};
$ENV{PATH_INFO} = $path_info if defined $path_info;
};
$ENV{PATH_INFO} = $path_info if defined $path_info;
@@
-261,14
+261,14
@@
sub sendheaders () {
my $part = $1;
if ($part eq '<:=' and not $in_block) {
$in_block = 2;
my $part = $1;
if ($part eq '<:=' and not $in_block) {
$in_block = 2;
- $source .= "\cQ, ";
+ $source .= "\cQ,
(
";
} elsif ($part eq '<:' and not $in_block) {
$in_block = 1;
$source .= "\cQ; ";
} elsif ($part eq ':>' and $in_block) {
$source .= (
$in_block == 2
} elsif ($part eq '<:' and not $in_block) {
$in_block = 1;
$source .= "\cQ; ";
} elsif ($part eq ':>' and $in_block) {
$source .= (
$in_block == 2
- ? "
, q\cQ"
# 2
+ ? "
), q\cQ"
# 2
: "; $PLP::print q\cQ" # 1
);
$in_block = 0;
: "; $PLP::print q\cQ" # 1
);
$in_block = 0;
@@
-285,6
+285,14
@@
sub sendheaders () {
}
}
}
}
}
}
+
+ if ($in_block) {
+ $source .= (
+ $in_block == 2
+ ? "), q\cQ" # 2
+ : "; $PLP::print q\cQ" # 1
+ );
+ }
if ($use_cache) {
$cached{$path}[1] = $source;
if ($use_cache) {
$cached{$path}[1] = $source;
@@
-525,9
+533,11
@@
FAQ at L<PLP::FAQ>. Some examples can be found at L<PLP::HowTo>.
No warranty, no guarantees. Use PLP at your own risk, as I disclaim all
responsibility.
No warranty, no guarantees. Use PLP at your own risk, as I disclaim all
responsibility.
-=head1 AUTHOR
+=head1 AUTHORS
+
+Currently maintained by Mischa POSLAWSKY <perl@shiar.org>
-Juerd Waalboer <juerd@cpan.org>
+
Originally by
Juerd Waalboer <juerd@cpan.org>
=head1 SEE ALSO
=head1 SEE ALSO