Skip to content

Instantly share code, notes, and snippets.

@AlexEnz
Created March 21, 2022 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexEnz/b3922058d31b71b738448b57fb4fea00 to your computer and use it in GitHub Desktop.
Save AlexEnz/b3922058d31b71b738448b57fb4fea00 to your computer and use it in GitHub Desktop.
raku code
#!/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