[Jifty-commit] r2662 - jifty/trunk/lib/Jifty/Action

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sat Jan 27 06:30:38 EST 2007


Author: ruz
Date: Sat Jan 27 06:30:28 2007
New Revision: 2662

Modified:
   jifty/trunk/lib/Jifty/Action/Record.pm

Log:
* grep and map are faster without block

Modified: jifty/trunk/lib/Jifty/Action/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record.pm	(original)
+++ jifty/trunk/lib/Jifty/Action/Record.pm	Sat Jan 27 06:30:28 2007
@@ -346,7 +346,7 @@
 
 sub possible_fields {
     my $self = shift;
-    return map {$_->name} grep {$_->type ne "serial"} $self->record->columns;
+    return map $_->name, grep $_->type ne "serial", $self->record->columns;
 }
 
 =head2 take_action


More information about the Jifty-commit mailing list