Debian Codegraph @

t/Community/DollarAB.run

raw
1 ## name OutsideSort
2 ## failures 4
3 ## cut
4
5 $a = 1;
6 $b = 2;
7 asdf { $a = 1; $b = 2; };
8
9 ## name InsideSort
10 ## failures 0
11 ## cut
12
13 sort { $a = 1; $b = 2; } ();
14
15 ## name MethodSort
16 ## failures 0
17 ## cut
18
19 $collection->sort(sub { $a = 1; $b = 2 });
20
21 ## name HashKey
22 ## failures 0
23 ## cut
24
25 push @c, [ @row{sort { $a <=> $b } keys %row } ];
26
27 ## name ApparentSigil
28 ## failures 0
29 ## cut
30
31 my $x = $b[1]||" ";
32
33 ## name DereferenceBlock
34 ## failures 0
35 ## cut
36
37 sort { @{$a} <=> @{$b} } ();
38 sort { scalar(@{$a->{ids}}) <=> scalar(@{$b->{ids}}) } ();
39
40 ## name InnerBlock
41 ## failures 0
42 ## cut
43
44 sort { {; $a } } ();
45
46 ## name AllowedFunctions
47 ## failures 0
48 ## cut
49
50 sort { $a; $b } ();
51 reduce { $a; $b } ();
52 pairgrep { $a; $b } ();
53 pairfirst { $a; $b } ();
54 pairmap { $a; $b } ();
55 pairwise { $a; $b } ();
56
57 ## name CustomFunctions
58 ## failures 0
59 ## parms { extra_pair_functions => 'foo bar' }
60 ## cut
61
62 foo { $a; $b };
63 bar { $a; $b };