Commits

Toby Inkster committed 3d0219b

clean example

  • Participants
  • Parent commits d5ee71b

Comments (0)

Files changed (1)

File examples/inside-out.pl

-package Person;
+use v5.14;
 
-use Moose;
-use MooseX::FunkyAttributes;
+package Person {
+	use Moose;
+	use MooseX::FunkyAttributes;
 
-has name => (
-	traits => [ InsideOutAttribute ],
-	is     => 'ro',
-	isa    => 'Str',
-);
+	has name => (
+		traits => [ InsideOutAttribute ],
+		is     => 'ro',
+		isa    => 'Str',
+	);
 
-has age => (
-	is     => 'ro',
-	isa    => 'Num',
-);
-
-package main;
-
-use feature 'say';
+	has age => (
+		is     => 'ro',
+		isa    => 'Num',
+	);
+}
 
 my $bob = Person->new(name => 'Bob', age => 32);
 say $bob->name;     # Bob