From b71f2222ef2d490a34e7d4ac344e888790f1ffc8 Mon Sep 17 00:00:00 2001 From: Jonathan Strickland Date: Wed, 20 Jul 2011 18:25:28 -0400 Subject: [PATCH] got rid of a loop --- bb.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bb.pl b/bb.pl index 4830bf0..292f9e7 100755 --- a/bb.pl +++ b/bb.pl @@ -7,8 +7,6 @@ INCLUDE_PATH => './templates', }); -# sub returnHash -# when given a filename, this subroutine creates a hash for that file and fills sub returnHash { my ($self) = @_; my %self; @@ -16,7 +14,7 @@ sub returnHash { ($self{title}, $self{date}, my @rest) = ; close TEXT; - for $_ (@rest) { $self{text} .= $_; } + $self{text} = join('', @rest); return %self; }