Created
March 21, 2022 12:26
-
-
Save AlexEnz/b3922058d31b71b738448b57fb4fea00 to your computer and use it in GitHub Desktop.
raku code
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
#!/usr/bin/rakudo | |
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