Guest User

Untitled

a guest
Feb 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. #!/usr/bin/env perl
  2. use strict;
  3. use warnings;
  4. sub foo {
  5. my ($x) = @_;
  6. return 0 if ($x == 0);
  7. return foo $x - 1;
  8. }
  9. foo 3;
Add Comment
Please, Sign In to add comment