summaryrefslogtreecommitdiff
path: root/Xerl/Page/Document.pm
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2011-04-26 19:13:48 +0000
committerPaul Buetow <paul@buetow.org>2011-04-26 19:13:48 +0000
commitd87c0e16f9b880ce38e1ff6a39f22ba49263aef0 (patch)
treee9fa42aa49bcf532ca75fc17928aaff850815e1c /Xerl/Page/Document.pm
parent4aae3132de0ff117290cdc5a8cebeb5bf467942f (diff)
code cleanup using perltidy
Diffstat (limited to 'Xerl/Page/Document.pm')
-rw-r--r--Xerl/Page/Document.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/Xerl/Page/Document.pm b/Xerl/Page/Document.pm
index 13a8254..2ca9f10 100644
--- a/Xerl/Page/Document.pm
+++ b/Xerl/Page/Document.pm
@@ -45,7 +45,7 @@ sub parse($) {
my $document = $config->get_document();
my ($filename) = $document =~ m#([^/]+)$#;
- my ($postfix) = $document =~ /\.(.+)$/;
+ my ($postfix) = $document =~ /\.(.+)$/;
my $path;
print 'Content-Type: ';
@@ -62,10 +62,11 @@ sub parse($) {
my Xerl::Tools::FileIO $io = Xerl::Tools::FileIO->new( path => $path );
- if (-1 == $io->fslurp()) {
- $config->set_shutdown(1);
- } else {
- $io->print();
+ if ( -1 == $io->fslurp() ) {
+ $config->set_shutdown(1);
+ }
+ else {
+ $io->print();
}
return undef;