summaryrefslogtreecommitdiff
path: root/lib/perl5db
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2012-06-25 15:06:49 +0200
committerVincent Pit <perl@profvince.com>2012-06-25 15:21:02 +0200
commitea7bdd87ed0a0e43dbc038182ac2ebde79570a5e (patch)
tree337e59978b43059e74df775104dcf4d4c34fec6d /lib/perl5db
parent7a251f7a69f0a1331dd5464535c47b95dc7b7334 (diff)
downloadperl-ea7bdd87ed0a0e43dbc038182ac2ebde79570a5e.tar.gz
Fix (and test) breakpoints on subroutines
They were broken since 'use strict' was added to the debugger.
Diffstat (limited to 'lib/perl5db')
-rw-r--r--lib/perl5db/t/fact14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/perl5db/t/fact b/lib/perl5db/t/fact
new file mode 100644
index 0000000000..ac25eac1ed
--- /dev/null
+++ b/lib/perl5db/t/fact
@@ -0,0 +1,14 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+sub fact {
+ my $n = shift;
+ if ($n > 1) {
+ return $n * fact($n - 1);
+ } else {
+ return 1;
+ }
+}
+fact(5);