Created
February 7, 2018 00:09
-
-
Save bdw/1b640852caf5b68384bd17bb0141278d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
sub foo { | |
my ($x) = @_; | |
return 0 if ($x == 0); | |
return foo $x - 1; | |
} | |
foo 3; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment