t/Community/AmpersandSubCalls.run
raw| 1 | ## name AmpersandWithArgs |
| 2 | ## failures 2 |
| 3 | ## cut |
| 4 | |
| 5 | &foo(1,2,3); |
| 6 | &foo 1,2,3; |
| 7 | |
| 8 | ## name AmpersandNoArgs |
| 9 | ## failures 2 |
| 10 | ## cut |
| 11 | |
| 12 | &foo(); |
| 13 | &foo; |
| 14 | |
| 15 | ## name SubRef |
| 16 | ## failures 0 |
| 17 | ## cut |
| 18 | |
| 19 | my $ref = \&foo; |
| 20 | |
| 21 | ## name AmpersandExemptions |
| 22 | ## failures 0 |
| 23 | ## cut |
| 24 | |
| 25 | goto &foo; |
| 26 | defined &foo; |
| 27 | exists &foo; |