This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
perlapi: Place in dictionary sort order
[perl5.git]
/
lib
/
perl5db
/
t
/
test-l-statement-2
Commit
Line
Data
2c247e84
SF
1
#!/usr/bin/perl
2
3
use strict;
4
use warnings;
5
6
sub fact {
7
my $n = shift;
8
if ($n > 1) {
9
return $n * fact($n - 1);
10
} else {
11
return 1;
12
}
13
}
14
15
sub bar {
16
print "One\n";
17
print "Two\n";
18
print "Three\n";
19
20
return;
21
}
22
23
fact(5);
24
bar();