Debian Codegraph @

t/Community/DeprecatedFeatures.run

raw
1 ## name GoodFeatures
2 ## failures 0
3 ## cut
4
5 my $x : Foo = 1;
6 use UNIVERSAL ();
7 UNIVERSAL->can('foo');
8 use POSIX ();
9 for my $foo (qw(foo bar)) { ... }
10 1 for qw(foo bar);
11 do { ... };
12 do '...';
13 do $foo;
14 isalnum $foo;
15 isalpha $foo;
16 iscntrl $foo;
17 isdigit $foo;
18 isgraph $foo;
19 islower $foo;
20 isprint $foo;
21 ispunct $foo;
22 isspace $foo;
23 isupper $foo;
24 isxdigit $foo;
25 tmpnam $foo;
26 defined $foo;
27 defined $foo[0];
28 defined $foo{bar};
29 defined &foo;
30 $obj->defined(@foo);
31 foo ? bar ? 'foo' : 'bar' : 'baz';
32 foo ? bar ? foo : bar : baz;
33 $foo =~ m?foo?;
34 $foo =~ s?foo?bar?;
35 "\N{FOO BAR}";
36 `\N{FOO BAR}`;
37 qx(\N{FOO BAR});
38 qq{\N{FOO BAR}};
39 qr/\N{FOO BAR}/;
40 m'\N{FOO BAR}';
41 s{\N{FOO BAR}}{};
42 keys %hash;
43 keys %$href;
44 keys(%{$href});
45 keys %{$foo{bar}[5]};
46 keys $foo->{bar}[5]->%*;
47 keys $foo->{bar}[5]->%* > 4;
48 shift(@array);
49 shift @$aref;
50 shift @{$aref};
51 shift(@{$foo->{bar}[5]});
52 shift $foo->{bar}[5]->@*;
53 shift;
54 shift();
55 Foo->shift($foo);
56 require Foo::Bar;
57 use Foo::Bar;
58 no Foo::Bar;
59 require '::Foo::Bar.pm';
60 qr/\cT\\C/;
61 m/\cT\\C/;
62 chdir;
63 chdir();
64 chdir 'foo';
65 chdir(getcwd);
66 << 'foo';
67 foo
68 <<'';
69
70 <<foo;
71 foo
72 foo << (bar);
73 foo << +bar;
74
75 ## name BadFeatures
76 ## failures 51
77 ## cut
78
79 $[ = 1;
80 my $x := 1;
81 UNIVERSAL->import;
82 use UNIVERSAL;
83 use UNIVERSAL 'foo';
84 for my $foo qw(foo bar) { ... }
85 do foo(...);
86 do &foo(...);
87 do $foo(...);
88 POSIX::isalnum($foo);
89 POSIX::isalpha($foo);
90 POSIX::iscntrl($foo);
91 POSIX::isdigit($foo);
92 POSIX::isgraph($foo);
93 POSIX::islower($foo);
94 POSIX::isprint($foo);
95 POSIX::ispunct($foo);
96 POSIX::isspace($foo);
97 POSIX::isupper($foo);
98 POSIX::isxdigit($foo);
99 POSIX::tmpnam($foo);
100 defined @foo;
101 defined %foo;
102 defined(@foo);
103 defined(%foo);
104 $foo =~ ?foo?;
105 "\N{FOO BAR}";
106 `\N{FOO BAR}`;
107 qq{\N{FOO BAR}};
108 qx(\N{FOO BAR});
109 qr^\N{FOO BAR}^;
110 m<\N{FOO BAR}>;
111 s/\N{FOO BAR}//;
112 each $ref;
113 keys($ref);
114 pop $foo->{bar};
115 push $foo{bar}[0];
116 shift($foo->[5]);
117 splice $foo, $bar, $baz;
118 unshift $ref, @bar;
119 values $ref;
120 require ::Foo::Bar;
121 use ::Foo::Bar;
122 no ::Foo::Bar;
123 qr/\C/;
124 m/\C/;
125 chdir '';
126 chdir(qq());
127 chdir undef();
128 <<;
129
130 (<<);
131
132 {<<}
133
134 << . bar;
135
136
137 ## name POSIXDeprecations
138 ## failures 12
139 ## cut
140
141 use POSIX;
142 isalnum $foo;
143 isalpha $foo;
144 iscntrl $foo;
145 isdigit $foo;
146 isgraph $foo;
147 islower $foo;
148 isprint $foo;
149 ispunct $foo;
150 isspace $foo;
151 isupper $foo;
152 isxdigit $foo;
153 tmpnam $foo;
154
155 ## name POSIXDeprecationsImported
156 ## failures 12
157 ## cut
158
159 use POSIX qw(isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tmpnam);
160 isalnum $foo;
161 isalpha $foo;
162 iscntrl $foo;
163 isdigit $foo;
164 isgraph $foo;
165 islower $foo;
166 isprint $foo;
167 ispunct $foo;
168 isspace $foo;
169 isupper $foo;
170 isxdigit $foo;
171 tmpnam $foo;