Advertisement
cwchen

[Perl 6] string related operators

Sep 30th, 2017
635
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.10 KB | None | 0 0
  1. "Hi" x 3 eq "HiHiHi" or die "Wrong string";
  2. ("Hello " ~ "World") eq "Hello World" or die "Wrong string";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement