Advertisement
cwchen

[Perl 6] before and after operators

Sep 30th, 2017
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.19 KB | None | 0 0
  1. (10 before 2) == False or die "Wrong logic";
  2. (10 after 2) == True or die "Wrong logic";
  3.  
  4. ("Perl" before "Ruby") == True or die "Wrong logic";
  5. ("Perl" after "Ruby") == False or die "Wrong logic";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement