File: AmpersandSubCalls.run

package info (click to toggle)
libperl-critic-freenode-perl 0.028-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 416 kB
  • sloc: perl: 986; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 278 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## name AmpersandWithArgs
## failures 2
## cut

&foo(1,2,3);
&foo 1,2,3;

## name AmpersandNoArgs
## failures 2
## cut

&foo();
&foo;

## name SubRef
## failures 0
## cut

my $ref = \&foo;

## name AmpersandExemptions
## failures 0
## cut

goto &foo;
defined &foo;
exists &foo;