Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $food = "seafood";
- with $food.index("hamburger") {
- "{$food} is delicious.".say;
- } orwith $food.index("chip") {
- "I like {$food} as well.".say;
- } else {
- "No favored food".say;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement