Created
April 2, 2011 17:24
-
-
Save 0branch/899682 to your computer and use it in GitHub Desktop.
Example of type mismatching for Str in Moose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Object; | |
my $foo = Object->new(name => "lamp"); | |
my $bar = Object->new(name => {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment