From: Andy Grundman Date: Mon, 19 Sep 2005 22:45:04 +0000 (+0000) Subject: Fixed Helper so it works with CRLF line-endings X-Git-Tag: 5.7099_04~1238 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=6a5c55b6b2cbfb8c36328acb333398de83a6e8e3 Fixed Helper so it works with CRLF line-endings --- diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index 61b5a2d..1d25105 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -40,7 +40,7 @@ sub get_file { $cache{$class} = eval "package $class; "; } my $data = $cache{$class}; - my @files = split /^__(.+)__\n/m, $data; + my @files = split /^__(.+)__\r?\n/m, $data; shift @files; while (@files) { my ( $name, $content ) = splice @files, 0, 2;