Created
March 21, 2022 12:24
-
-
Save AlexEnz/cd15bab8cee0673b52521d7e2869bd6b to your computer and use it in GitHub Desktop.
raku examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if "/etc/os-release".IO andthen .f && .r { | |
say "true"; | |
} else { | |
say "false"; | |
} | |
with "/etc/os-release".IO { | |
if .f and .r { | |
say "true"; | |
} else { | |
say "false"; | |
} | |
} | |
if "/etc/os-release".IO ~~ :f && :r { | |
say "true"; | |
} else { | |
say "false"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment