Add Perl 5 implementation

This commit is contained in:
Andreas Voegele committed 2014-04-18 20:33:19 +02:00
1 parent 4967a5606d
commit 0a772512de
3 files changed
+108

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
package Item;
use strict;
use warnings;
sub new {
my ( $class, %attrs ) = @_;
return bless \%attrs, $class;
}
sub _data_printer { ## no critic (ProhibitUnusedPrivateSubroutines)
my ( $self, $properties ) = @_;
return $self->{name} . ', ' . $self->{sell_in} . ', ' . $self->{quality};
}
1;