Advertisement
cwchen

[Perl 6] last demo.

Oct 5th, 2017
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.09 KB | None | 0 0
  1. my $i = 1;
  2.  
  3. loop {
  4.     if $i > 5 {
  5.         last;
  6.     }
  7.    
  8.     $i.say;
  9.     $i++;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement