aboutsummaryrefslogtreecommitdiff
path: root/challenge-074/bob-lied/perl/lib
diff options
context:
space:
mode:
authorboblied <boblied@gmail.com>2020-08-18 07:14:56 -0500
committerboblied <boblied@gmail.com>2020-08-18 07:14:56 -0500
commit2f73a24a034bdf7a47ce74eb86e2c828dabc1aea (patch)
tree61950caa04566e467769916ae35bf04461fb1dcd /challenge-074/bob-lied/perl/lib
parent14f5ddd9f2717ef95d836b06941a97a2e9e2b737 (diff)
downloadperlweeklychallenge-club-2f73a24a034bdf7a47ce74eb86e2c828dabc1aea.tar.gz
perlweeklychallenge-club-2f73a24a034bdf7a47ce74eb86e2c828dabc1aea.tar.bz2
perlweeklychallenge-club-2f73a24a034bdf7a47ce74eb86e2c828dabc1aea.zip
Set up for challenge 74
Diffstat (limited to 'challenge-074/bob-lied/perl/lib')
-rw-r--r--challenge-074/bob-lied/perl/lib/FNR.pm39
-rw-r--r--challenge-074/bob-lied/perl/lib/MajorityElement.pm39
2 files changed, 78 insertions, 0 deletions
diff --git a/challenge-074/bob-lied/perl/lib/FNR.pm b/challenge-074/bob-lied/perl/lib/FNR.pm
new file mode 100644
index 0000000000..c0cbae378d
--- /dev/null
+++ b/challenge-074/bob-lied/perl/lib/FNR.pm
@@ -0,0 +1,39 @@
+# vim:set ts=4 sw=4 sts=4 et ai wm=0 nu:
+#=============================================================================
+# FNR.pm
+#=============================================================================
+# Copyright (c) 2020, Bob Lied
+#=============================================================================
+# Description:
+#=============================================================================
+
+package FNR;
+
+use strict;
+use warnings;
+
+require Exporter;
+our @ISA = qw(Exporter);
+our @EXPORT = qw();
+our @EXPORT_OK = qw();
+
+sub new
+{
+ my $class = shift;
+ my $class = ref($class) || $class;
+ my $self = {
+ _name1 = $_[0],
+ };
+ bless $self, $class;
+ return $self;
+}
+
+sub FNR
+{
+ my ($s) = @_;
+ my $result = "";
+
+ return $result;
+}
+
+1;
diff --git a/challenge-074/bob-lied/perl/lib/MajorityElement.pm b/challenge-074/bob-lied/perl/lib/MajorityElement.pm
new file mode 100644
index 0000000000..8a7dcb0192
--- /dev/null
+++ b/challenge-074/bob-lied/perl/lib/MajorityElement.pm
@@ -0,0 +1,39 @@
+# vim:set ts=4 sw=4 sts=4 et ai wm=0 nu:
+#=============================================================================
+# MajorityElement.pm
+#=============================================================================
+# Copyright (c) 2020, Bob Lied
+#=============================================================================
+# Description:
+#=============================================================================
+
+package MajorityElement;
+
+use strict;
+use warnings;
+
+require Exporter;
+our @ISA = qw(Exporter);
+our @EXPORT = qw(majorityElement);
+our @EXPORT_OK = qw();
+
+sub new
+{
+ my $class = shift;
+ my $class = ref($class) || $class;
+ my $self = {
+ _name1 = $_[0],
+ };
+ bless $self, $class;
+ return $self;
+}
+
+sub majorityElement
+{
+ my (@arr) = @_;
+ my $result = -1;
+
+ return $result;
+}
+
+1;