[Moose-commits] r7418 - File-Stat-Moose/trunk/lib/File/Stat
dexter at code2.0beta.co.uk
dexter at code2.0beta.co.uk
Thu Jan 29 18:10:04 GMT 2009
Author: dexter
Date: 2009-01-29 10:10:03 -0800 (Thu, 29 Jan 2009)
New Revision: 7418
Modified:
File-Stat-Moose/trunk/lib/File/Stat/Moose.pm
Log:
* Quote "has" keyword's parameter.
Modified: File-Stat-Moose/trunk/lib/File/Stat/Moose.pm
===================================================================
--- File-Stat-Moose/trunk/lib/File/Stat/Moose.pm 2009-01-29 18:08:47 UTC (rev 7417)
+++ File-Stat-Moose/trunk/lib/File/Stat/Moose.pm 2009-01-29 18:10:03 UTC (rev 7418)
@@ -124,7 +124,7 @@
foreach my $attr ( qw{ dev ino mode nlink uid gid rdev size blksize blocks } ) {
# Numeric informations about a file
- has $attr => (
+ has "$attr" => (
is => 'ro',
isa => 'Maybe[Int]',
writer => "_set_$attr",
@@ -146,7 +146,7 @@
);
# Time as DateTime object (lazy evaluationed)
- has $attr => (
+ has "$attr" => (
is => 'ro',
isa => 'Maybe[DateTime]',
lazy => TRUE,
More information about the Moose-commits
mailing list