June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1,6 +1,6 @@
|
|||
say ++$; # this is an anonymous state variable
|
||||
say ++$; # this is a different anonymous state variable, prefix:<++> forces it into numerical context and defaults it to 0
|
||||
say $+=2 for 1..10 # here we do something useful with another anonymous variable
|
||||
say $+=2 for 1..10; # here we do something useful with another anonymous variable
|
||||
|
||||
sub foo { $^a * $^b } # for positional arguments we often can't be bothered to declare them or to give them fancy names
|
||||
say foo 3, 4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue