Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 11, 2026 01:38
Show Gist options
  • Select an option

  • Save Whateverable/864c4cc8a575ff3f1f3b48c2068a7afc to your computer and use it in GitHub Desktop.

Select an option

Save Whateverable/864c4cc8a575ff3f1f3b48c2068a7afc to your computer and use it in GitHub Desktop.
evalable6
sub b(Int $p is rw) { say "b: $p" }; sub a(Int $p is rw) { b(++$p) }; my Int $v = 5; a($v); say "v=$v"
(exit code 1)
Parameter '$p' expects a writable container (variable) as an argument,
but got '6' (Int) as a value without a container.
in sub b at /tmp/fLh38a9EoM line 1
in sub a at /tmp/fLh38a9EoM line 1
in block <unit> at /tmp/fLh38a9EoM line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment