develooper Front page | perl.cvs.mod_parrot | Postings from June 2009

[svn:mod_parrot] r649 - mod_parrot/trunk/languages/perl6/lib

From:
jhorwitz
Date:
June 23, 2009 10:13
Subject:
[svn:mod_parrot] r649 - mod_parrot/trunk/languages/perl6/lib
Message ID:
20090623171343.7DD501844E7@xx12.develooper.com
Author: jhorwitz
Date: Tue Jun 23 10:13:42 2009
New Revision: 649

Modified:
   mod_parrot/trunk/languages/perl6/lib/mod_perl6.pm

Log:
use a more readable junction for checking the apache handler


Modified: mod_parrot/trunk/languages/perl6/lib/mod_perl6.pm
==============================================================================
--- mod_parrot/trunk/languages/perl6/lib/mod_perl6.pm	(original)
+++ mod_parrot/trunk/languages/perl6/lib/mod_perl6.pm	Tue Jun 23 10:13:42 2009
@@ -215,7 +215,7 @@
 {
     my $r = $ctx.request_rec();
 
-    unless ($r.handler() ~~ any(<modperl6 perl6-script>)) {
+    unless ($r.handler() ~~ 'modperl6'|'perl6-script') {
         return $Apache::Const::DECLINED;
     }
 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About