Add type checking
package Person; use Moose; has name => (is => 'rw', isa => 'Str'); has age => (is => 'rw', isa => 'Int'); 1;
- the 'isa' keyword creates type validating
| Moose | Moose - It's the new camel | #6 |
package Person; use Moose; has name => (is => 'rw', isa => 'Str'); has age => (is => 'rw', isa => 'Int'); 1;
| Copyright © 2007 Robert Boone |