Skip to content

Instantly share code, notes, and snippets.

@perl6
Created May 30, 2009 02:52
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 perl6/120339 to your computer and use it in GitHub Desktop.
Save perl6/120339 to your computer and use it in GitHub Desktop.
pmichaud@plum:~/rakudo$ ./perl6
> my $b = 5; sub foo($a) { $b++; $a++; say $a; }; foo($b)
Cannot assign to readonly variable.
in sub foo (<unknown>:1)
called from Main (<unknown>:1)
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment