-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
end-of-script regex fix, debug capabilities, version++
- Loading branch information
Showing
8 changed files
with
92 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.1 | ||
0.1.2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package Other::Module; | ||
use strict; | ||
use warnings FATAL => 'all'; | ||
|
||
use experimental 'signatures'; | ||
|
||
use base 'Exporter'; | ||
our @EXPORT = qw(is_it_the_number2 is_the_sum_the_number2); | ||
|
||
my $anon = sub($number) { | ||
if ($number != 42) { | ||
return "No, it's not"; | ||
} | ||
}; | ||
|
||
sub is_it_the_number2($number) { | ||
if ($number == 42) { | ||
return "It is the number"; | ||
} | ||
else { | ||
&{$anon}($number); | ||
} | ||
} | ||
|
||
sub is_the_sum_the_number2($number1, $number2) { | ||
# extra complicated check | ||
if ($number1 > 42 or $number2 > 42) { | ||
return "No, its not"; | ||
} | ||
elsif (($number2 == 42 or $number1 == 42) and ($number1 + $number2 == 0)) { | ||
return "It is the number"; | ||
} | ||
elsif ($number1 + $number2 == 42) { | ||
return "It is the number" | ||
} | ||
else { | ||
&{$anon}($number1 + $number2); | ||
} | ||
|
||
} | ||
|
||
1; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
#PERL_DIR=/home/tbossert/.plenv/versions/5.32.1/bin | ||
PERL_DIR=/usr/bin/ | ||
PERL_DIR=/home/tbossert/.plenv/versions/5.32.1/bin | ||
#PERL_DIR=/usr/bin/ | ||
|
||
# Delete old coverage Data | ||
#$PERL_DIR/cover -delete | ||
|
||
# Run tests | ||
#HARNESS_PERL_SWITCHES="-MDevel::Cover=-ignore,^t/,Deanonymize -MDevel::Deanonymize=Fancy" $PERL_DIR/prove t/ -I lib/ -I ../lib | ||
#HARNESS_PERL_SWITCHES='-MDevel::Cover=-ignore,^t/,Deanonymize -MDevel::Deanonymize=Fancy|Other' $PERL_DIR/prove t/ -I lib/ -I ../lib | ||
#HARNESS_PERL_SWITCHES="-MDevel::Cover=-ignore,^t/,Deanonymize" $PERL_DIR/prove t/ -I lib/ -I ../lib | ||
|
||
|
||
|
||
# Run script | ||
$PERL_DIR/perl -MDevel::Cover=-ignore,^t/,Deanonymize -MDevel::Deanonymize=Fancy -I lib/ -I ../lib my_program.pl | ||
$PERL_DIR/perl -MDevel::Cover=-ignore,^t/,Deanonymize -MDevel::Deanonymize='Fancy|Other' -I lib/ -I ../lib my_program.pl | ||
|
||
$PERL_DIR/cover -report html |
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
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