Skip to content

Instantly share code, notes, and snippets.

@AlexEnz
Created March 21, 2022 12:24
Show Gist options
  • Save AlexEnz/cd15bab8cee0673b52521d7e2869bd6b to your computer and use it in GitHub Desktop.
Save AlexEnz/cd15bab8cee0673b52521d7e2869bd6b to your computer and use it in GitHub Desktop.
raku examples
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