Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 501 lines (340 sloc) 13.631 kb
8f67bea @fglock Perlito version 8.0
authored
1 TODO list for Perlito5
2
d6cad9b @fglock Perlito5 - TODO update
authored
3
25b8875 @fglock Perlito5 - TODO update
authored
4 * perlito5 command-line
e4641d7 @fglock Perlito - extensive TODO update
authored
5
6
8f67bea @fglock Perlito version 8.0
authored
7 * libraries
8
3004b77 @fglock Perlito5 - cleanup, update TODO
authored
9 -- these should probably go into namespace Perlito5X::*
10
ce7ce91 @fglock Perlito - TODO update
authored
11 -- Test (implemented as Perlito5::Test)
3004b77 @fglock Perlito5 - cleanup, update TODO
authored
12
ce7ce91 @fglock Perlito - TODO update
authored
13 -- Data::Dumper (implemented as Perlito5::Dumper)
8f67bea @fglock Perlito version 8.0
authored
14
24c23f7 @fglock Perlito5 - TODO update
authored
15 -- create perlito5-specific libs for:
7aeb314 @fglock Perlito5 - TODO update
authored
16 feature.pm
17 Config.pm
18 overload.pm
19 bytes.pm
20 integer.pm
21 constant.pm
22 lib.pm
23 Carp.pm
24 vars.pm
25 Tie::Array
26 Tie::Hash
27 Tie::Scalar
24c23f7 @fglock Perlito5 - TODO update
authored
28
4d56b5d @fglock Perlito5 - add $ENV{PERL5LIB} to @INC
authored
29 alternately, check $^H for strictness - such that perl's own strict.pm just works
30 and ${^WARNING_BITS} for warnings
31
8f67bea @fglock Perlito version 8.0
authored
32
7b982c3 @fglock Perlito5 - update TODO
authored
33 * Parser
34
0b08be2 @fglock Perlito5 - TODO update
authored
35 -- dot-decimal strings
b11df1a @fglock Perlito5 - TODO update
authored
36 5.4.66.77
37 v5.4.66.77
38
0b08be2 @fglock Perlito5 - TODO update
authored
39 $ perl -e ' my $v = 5.4.66.77 ; print $v, "\n"; require $v '
40 BM
41
2537119 @fglock Perlito5 - TODO update
authored
42 -- "'" meaning "::"
43 $'m # $::m
44 $m' # String found where operator expected
45
46 package X'Y # X::Y
47 package X' # Invalid version format (non-numeric data)
48
131944d @fglock Perlito5 - TODO update; add more references to documentation and tests
authored
49 -- attributes
50 http://perldoc.perl.org/attributes.html
c2716c0 @fglock Perlito5 - parser - subroutine attributes
authored
51 missing MODIFY_CODE_ATTRIBUTES handlers
02db591 @fglock Perlito5 - update TODO
authored
52
131944d @fglock Perlito5 - TODO update; add more references to documentation and tests
authored
53 -- create __DATA__
5058d24 @fglock Perlito5 - grammar - save __DATA__ sections
authored
54 %Perlito5::DATA_SECTION contains the __DATA__ for each package
55
ae33743 @fglock Perlito5 - TODO update
authored
56 -- compile-time eval() is not bound to the "program" environment, but to the "compiler" environment instead
131944d @fglock Perlito5 - TODO update; add more references to documentation and tests
authored
57 see README-perlito5-js near "Compile-time / Run-time interleaving"
58
59 my $v;
60 BEGIN { $v = "123" }
61 use Module $v; # $v is not accessible at compile-time
7b982c3 @fglock Perlito5 - update TODO
authored
62
529225f @fglock Perlito5 - TODO update
authored
63 -- parse the regexes
131944d @fglock Perlito5 - TODO update; add more references to documentation and tests
authored
64 create an AST for regexes
7b982c3 @fglock Perlito5 - update TODO
authored
65
b32dc90 @fglock Perlito5 - update TODO
authored
66 -- prototypes (signatures)
131944d @fglock Perlito5 - TODO update; add more references to documentation and tests
authored
67 http://perldoc.perl.org/perlsub.html#Prototypes
68
69 check that undeclared barewords give the right error
70 *foo = sub () { ... } # does prototype work here?
71 check signature in sort()
72 fix the prototype for 'stat(*)' (see t/test.pl in the perl test suite)
fde5276 @fglock Perlito5 - update TODO
authored
73
5f528ed @fglock Perlito5 - parser - more TODO special cases
authored
74 -- "namespace" parsing
131944d @fglock Perlito5 - TODO update; add more references to documentation and tests
authored
75 tests: t5/01-perlito/26-syntax-namespace.t
5f528ed @fglock Perlito5 - parser - more TODO special cases
authored
76
e107c18 @fglock Perlito5 - parser - add "glob variable"
authored
77 $ perl -e ' { package X; sub print { CORE::print(">$_[1]<\n") } } my $x = bless {}, "X"; print $x "xxx" '
78 Not a GLOB reference at -e line 1.
79
80 $ perl -e ' { package X; sub printx { CORE::print(">$_[1]<\n") } } my $x = bless {}, "X"; printx $x "xxx" '
81 >xxx<
82
83 $ perl -MO=Deparse -e ' print X:: "xxx" '
84 print X 'xxx';
85
86 $ perl -e ' use strict; my $x = X::; print $x '
87 X
88
89 $ perl -e ' use strict; my $x = X; print $x '
90 Bareword "X" not allowed while "strict subs" in use
91
daea592 @fglock Perlito5 - add more "use strict"
authored
92 $ perl perlito5.pl -MO=Deparse -e ' ::X::x::y '
93 join("", ::{'main::X::'} x main::y);
94
5f528ed @fglock Perlito5 - parser - more TODO special cases
authored
95 $ perl -MO=Deparse -e ' ::X '
96 '???';
97
98 $ perl -MO=Deparse -e ' sub X {} ::X '
99 sub X { }
100 X;
101
d216d0e @fglock Perlito5 - parser - namespace TODO - more corner cases
authored
102 $ perl -e ' $::X::::X = 3; print $main::X::::X ' # 3
d69c95a @fglock Perlito5 - parser - namespace TODO - more corner cases
authored
103 $ perl -e ' $::X::::X = 3; print $main::main::X::::X ' # 3
104 $ perl -e ' $::X::::X = 3; print $main::X::main::X ' # empty
d216d0e @fglock Perlito5 - parser - namespace TODO - more corner cases
authored
105 $ perl -e ' $::X::::X = 3; print $main::X::X ' # empty
d69c95a @fglock Perlito5 - parser - namespace TODO - more corner cases
authored
106 $ perl -e ' $::X::::X = 3; print $::::X::::X ' # empty
107
bad489f @fglock Perlito5 - parser - TODO list
authored
108 -- CORE:: namespace can be used with operators:
109
110 $ perl -MO=Deparse -e ' $x CORE::and $v '
111 $v if $x;
112
113 $ perl -MO=Deparse -e ' @v = CORE::qw/ a b c / '
114 @v = ('a', 'b', 'c');
115
116 $ perl -MO=Deparse -e ' $x CORE::+ $v '
117 CORE:: is not a keyword
118
d216d0e @fglock Perlito5 - parser - namespace TODO - more corner cases
authored
119
1395266 @fglock Perlito5 - TODO update
authored
120 -- strict and warnings: create options like 'subs', 'refs'
121
94163c8 @fglock perlito5 - parser - tweak TODO list
authored
122 -- clean up:
123 the several "end_tables" in Expression.pm are duplicating the function of
124 $Precedence in Precedence.pm - Expression.pm should use $Precedence directly.
2077216 @fglock Perlito5 - add TODO
authored
125
b33a702 @fglock perlito5 - parser - TODO "things that work in perlito5, but which are…
authored
126 -- things that work in perlito5, but which are errors in 'perl'
127
30e4683 @fglock Perlito5 - TODO update
authored
128 $ perl -e ' my @things= map { no warnings; 123 } @list; '
129 "no" not allowed in expression
130
b33a702 @fglock perlito5 - parser - TODO "things that work in perlito5, but which are…
authored
131 quotes vs. hash lookups:
132
133 $ perl -e ' q}} '
134 # ok
135
136 $ perl -e ' $x{ q}} } '
137 Unmatched right curly bracket at -e line 1, at end of line
138
139 $ perl -e ' $x{ q]] } '
140 # ok
141
142 string interpolation with nested quotes of the same type:
143
144 $ perl -e ' " $x{"x"} " '
145 String found where operator expected at -e line 1, near "x"} ""
146
2cc1933 @fglock Perlito5 - TODO update
authored
147
95e6b6c @fglock Perlito5 - TODO cleanup
authored
148 * Add tests for fixed bugs:
149
efea5bc @fglock Perlito5 - TODO update
authored
150 ---
151 variable declarations in expressions
152
153 our $Verbose ||= 0;
154 our (%Cache);
155 my $args = @_ or @_ = @$exports;
156
95e6b6c @fglock Perlito5 - TODO cleanup
authored
157
158 ---
159 add additional variants of "for"
160
161 # "our" with localization
162 $ perl -e ' use strict; our $x = 123; for our $x (1,2,3) { 2 } print "$x\n" '
163 123
164
165 # variable in scope with localization
166 $ perl -e ' use strict; my $x = 123; for $x (1,2,3) { 2 } print "$x\n" '123
167 123
168
169
170 ---
171 add "print", "printf", "say" special parsing - note this is related to indirect object notation
172
173 indirect object notation
174 http://lwn.net/Articles/451486/
175 http://www.modernperlbooks.com/mt/2009/08/the-problems-with-indirect-object-notation.html
176 http://shadow.cat/blog/matt-s-trout/indirect-but-still-fatal/
177 http://perlbuzz.com/mechanix/2008/02/the-perils-of-perl-5s-indirect.html
178
179 method Module $param;
180 new Class( arg => $value );
181 new Class::($args);
182 say $config->{output} "This is a diagnostic message!"; # indirect call
183 say {$config->{output}} "This is a diagnostic message!"; # say to filehandle
184
185 use Class;
186 sub Class {
187 warn 'Called Class sub not Class package';
188 'Class'
189 }
190 my $q = Class->new; # calls the Class sub above
191 my $s = new Class; # throws a 'Bareword found where operator expected' error
192 my $t = Class::->new # this works
193 my $u = new Class::; # this also works (even with sub main in the current package)
194
195 sbertrang++ noted this is also valid:
196 print( STDERR "123" )
197
198
199 ---
94163c8 @fglock perlito5 - parser - tweak TODO list
authored
200 add tests for signatures: "empty" _ $ ;$
201
202 ---
caf3b30 @fglock perlito5 - parser - fix "sub _" should be in package "main"
authored
203 add test for "sub _" should be in package "main"
204 $ perl -MO=Deparse -e ' package X; sub _ { 123 } '
205 package X;
206 sub main::_ {
207 123;
208 }
209
210 ---
211 add test for defined-or vs. m// (2012/9/25 Конрад Боровски <notifications@github.com>)
212 Note: fixed; see test t5/01-perlito/25-syntax-defined-or.t
213
214 $ perl perlito5.pl -Isrc5/lib -Cast-perl5 -e ' shift // 2 '
215 Number or Bareword found where operator expected
216
217 $ perl perlito5.pl -Isrc5/lib -Cast-perl5 -e ' shift / 2 '
218 Can't find string terminator '/' anywhere before EOF
219
220 ---
221 add test for filetest operators special case:
2cc1933 @fglock Perlito5 - TODO update
authored
222 ' -f($file).".bak" ' should be equivalent to -f "$file.bak"
223 parses as -(f($file)).".bak"
224 but: ' -f ($file).".bak" '
225 parses correctly
226 This seems to be because there is a rule that \w followed by '(' is a function call;
227 this needs more testing: ' ... and(2) '
dd7a160 @fglock Perlito5 - parser: fix a bug caused by incorrect is_term state
authored
228 Test: redefine 'and', 'not' and check what works.
2cc1933 @fglock Perlito5 - TODO update
authored
229
230 ' $s111++ + $s222 '
231 parses as (+$s222)++
232
dd7a160 @fglock Perlito5 - parser: fix a bug caused by incorrect is_term state
authored
233 ' $step++ < $steps '
234 Can't find string terminator '>' anywhere before EOF
235
2cc1933 @fglock Perlito5 - TODO update
authored
236
8f67bea @fglock Perlito version 8.0
authored
237
5bb50dd @fglock Perlito5 - update TODO
authored
238 * Perl5 backend
399a3d2 @fglock Perlito5 - use scalar() instead of .elems()
authored
239
7bc739e @fglock Perlito5 - parser - add 'Perlito5::AST::Given'
authored
240 -- "given" statement not implemented
376e088 @fglock Perlito5 - TODO update
authored
241 -- "default" statement not implemented
7bc739e @fglock Perlito5 - parser - add 'Perlito5::AST::Given'
authored
242
66ec858 @fglock Perlito5 - TODO update
authored
243 -- check that \(@a) and \@a have different meanings
244
529225f @fglock Perlito5 - TODO update
authored
245 -- ${^NAME} needs curly-escaping
246
85c5759 @fglock Perlito5 - TODO update
authored
247 - fix regex delimiters, or escape the regexes
248
47374c7 @fglock Perlito5 - perl5: fix bareblock
authored
249 -- continue block in block: ' { print 1 } continue { print 2 } '
250
7a5d100 @fglock Perlito5 - perl5: document emitter bug (significant parenthesis)
authored
251 -- emitter bug: significant parenthesis:
252 t5/01-perlito/12-context.t fails because:
253 " return (4, 5) " instead of " return 4, 5 "
254
1d5cf89 @fglock Perlito5 - parser: new module Perlito5::Grammar::Sigil
authored
255 -- bug: ' $$x [$y] '
256 emits as ${$x}->[$y];
257
0cc64c5 @fglock Perlito5 - kill perl6-ish "method"
authored
258
8f67bea @fglock Perlito version 8.0
authored
259 * Javascript backend
260
a80bdf6 @fglock Perlito5 - js - p5scalar_deref fix
authored
261 -- autovivification of fully-qualified array and hash globals
fbb8123 @fglock Perlito5 - TODO update
authored
262 $Exporter::Cache[2] = 3;
263 # Cannot call method 'p5aset' of undefined
264
a80bdf6 @fglock Perlito5 - js - p5scalar_deref fix
authored
265 See: p5scalar_deref() / p5scalar_deref_set() in Perlito5/Javascript2/Runtime.pm
266
323e6c6 @fglock Perlito5 - TODO update
authored
267 -- pass @_ to &sub
268 $ node perlito5.js -I./src5/lib -Cjs -e ' @_ = (1,2); &foo; '
269 # call foo(@_)
270
1e00896 @fglock Perlito5 - require+version
authored
271 -- dot-decimal strings / v-strings
0b08be2 @fglock Perlito5 - TODO update
authored
272 $ perl -e ' my $v = 5.4.66.77 ; print $v, "\n"; require $v '
273 BM
274
275 -- variable declarations inside condition
276 if ((my $color = <STDIN>) =~ /red/i) {
277 $value = 0xff0000;
278 }
279 elsif ($color =~ /green/i) {
280 $value = 0x00ff00;
281 }
282 else { ... }
283
284 After the else, the $color variable is no longer in scope.
285
286 -- do {} while / do {} until
287 execute the loop once, before checking the condition
288
1e00896 @fglock Perlito5 - require+version
authored
289 -- 'require v5.006;'
290 # Can't locate v5.006 in @INC
945df32 @fglock Perlito5 - TODO update
authored
291
efea5bc @fglock Perlito5 - TODO update
authored
292 -- expressions in 'local'
945df32 @fglock Perlito5 - TODO update
authored
293 local $SIG{__WARN__};
294
4e24602 @fglock Perlito5 - TODO update
authored
295 -- assign old-self to my / local
296 local $Some_Global = $Some_Global;
297
945df32 @fglock Perlito5 - TODO update
authored
298 -- 'next', 'last' in expression
299 (*{"${callpkg}::$sym"} = \&{"${pkg}::$sym"}, next)
300 ... ) and last
301
302 -- 'x' in list context
303 @{$cache}{@$ok} = (1) x @$ok;
21af3dc @fglock Perlito5 - js - TODO update
authored
304
305 -- '&' prototype
306 add tests; see Try::Tiny
307
308 -- AUTOLOAD() called from UNIVERSAL autovivifies packages
309 add tests
310
30e4683 @fglock Perlito5 - TODO update
authored
311 -- prototype() can be set by aliasing:
312 *x = sub ($$) { 123 }; *y = *x; print prototype(\&y) # $$
313
66ec858 @fglock Perlito5 - TODO update
authored
314 -- check that \(@a) and \@a have different meanings
315
09cc8db @fglock Perlito5 - js - add TODO for delete() special case
authored
316 -- delete() in the middle of an array turns exists() off:
317
318 $ perl -e ' @a = (3..7); delete $a[2]; print "exists ", (exists $a[$_] ? 1 : 0), "\n" for 0 .. $#a '
319 exists 1
320 exists 1
321 exists 0
322 exists 1
323 exists 1
324
3b69c4e @fglock Perlito5 - javascript - add bug: "return" and context inside eval
authored
325 -- "or" has SCALAR context (Abigail++):
25440bb @fglock Perlito5 - TODO update
authored
326 See: t5/01-perlito/23-eval.t
3b69c4e @fglock Perlito5 - javascript - add bug: "return" and context inside eval
authored
327
ecbc8f4 @fglock Perlito5 - TODO update; fix "when"
authored
328 -- "~~" operator not implemented; See also "when" implementation
329
330 -- "given" statement not implemented
376e088 @fglock Perlito5 - TODO update
authored
331 -- "when" should use a "break" exception inside "given", and a "next" exception inside "for".
ecbc8f4 @fglock Perlito5 - TODO update; fix "when"
authored
332 -- "default" statement not implemented
333
db64ad6 @fglock Perlito5 - parser: "C-style" loop
authored
334 -- bug: some declarations are not "seen":
335 for ( my $i = 0; $i < 10 ; $i++ ) { print "$i\n" } # compiles to global $i
336
bb77986 @fglock Perlito5 - parser: optimize ident() rule
authored
337 -- bug: don't emit throw() in term position; javascript requires a function() wrapper because throw() is a statement
338
9f9d0dd @fglock Perlito5 - javascript: TODO update
authored
339 -- javascript errors don't show in the global error handler when running in node.js
7a03ff4 @fglock Perlito5 - javascript: eval-block works
authored
340
e584da6 @fglock Perlito5 - javascript: TODO update
authored
341 -- "autoload" the compiler if eval-string is used (eval-string needs the compiler at run-time)
342
529225f @fglock Perlito5 - TODO update
authored
343 -- symbol variables like $] ${"main::\$"} $#_
344 -- check that @_, $_, $a, $b and other special variables are in the right context (lexical, global, package global)
345
014a584 @fglock Perlito5 - javascript: working @ISA; update Changelog, examples
authored
346 -- add alternate mro's
85c5759 @fglock Perlito5 - TODO update
authored
347 -- cache the mro
42a3449 @fglock Perlito5 - TODO update
authored
348
349 -- add regex compiler
350 -- /e modifier
d2169b7 @fglock Perlito5 - t/test.pl: use cmp_ok()
authored
351 -- /x modifier
42a3449 @fglock Perlito5 - TODO update
authored
352 -- support all perl5 regex syntax
529225f @fglock Perlito5 - TODO update
authored
353 -- @v = /x/g
42a3449 @fglock Perlito5 - TODO update
authored
354
887219b @fglock Perlito5 - javascript: work around variable redeclaration bug
authored
355 -- bug: variable redeclaration does not work
356 -- javascript "var" erases the outer value within the whole current lexical scope
42a3449 @fglock Perlito5 - TODO update
authored
357 -- bug: "my" variables - this doesn't work as expected: my $v = $v
358 possible fix: rename variables
887219b @fglock Perlito5 - javascript: work around variable redeclaration bug
authored
359
b75827a @fglock Perlito5 - TODO update
authored
360 -- lvalue ternary: ($a_or_b ? $a : $b) = $c;
361 -- lvalue substr()
362 -- 4-arguments substr()
78fd976 @fglock Perlito5 - javascript: fix 3-arguments substr()
authored
363 -- pos($str)
b44f592 @fglock Perlito5 - TODO update
authored
364 -- lvalue chomp(), chop()
78fd976 @fglock Perlito5 - javascript: fix 3-arguments substr()
authored
365
366 -- missing some types of subroutine signatures
5b56e5b @fglock Perlito5 - change javascript calling convention
authored
367
8f67bea @fglock Perlito version 8.0
authored
368 -- bug: variable aliases create copies instead
369
ce36bd0 @fglock Perlito5 - update TODO
authored
370 -- generate more compact code; maybe use more subroutines instead of inlining;
371 autovivification is probably the most verbose part of the code.
ae7ad72 @fglock Perlito5 - update docs
authored
372
7b982c3 @fglock Perlito5 - update TODO
authored
373 -- in the browser: implement "use" with XMLHttpRequest (what are the security implications?)
4b15a00 @fglock Perlito5 - cleanup parenthesis
authored
374
5bb50dd @fglock Perlito5 - update TODO
authored
375 -- add symbol tables for scalar, array and hash
1b4e7ee @fglock Perlito5 - TODO update: typeglobs
authored
376 -- references to typeglobs:
377 $ perl -e ' print ref(\*main) '
378 GLOB
379 -- aliasing between lexicals and globals
380 $ perl -e 'use strict; my $x = 3; *main::z = \$x; print $main::z; '
381 3
5bb50dd @fglock Perlito5 - update TODO
authored
382
71b0905 @fglock Perlito5 - docs update
authored
383 -- string increment and string ranges
e09904a @fglock Perlito5 - javascript: infrastructure for string increment
authored
384 See: p5str_inc()
5b56e5b @fglock Perlito5 - change javascript calling convention
authored
385
0e5b55f @fglock Perlito5 - update TODO
authored
386 -- finish "overload" implementation
387
0718f37 @fglock Perlito5 - javascript: TODO update
authored
388 -- pack(), unpack()
389 -- y()()
390
b343129 @fglock Perlito - TODO update
authored
391 -- BEGIN{} should execute in the environment of the program under compilation
88914e1 @fglock Perlito5 - TODO update
authored
392 -- BEGIN/END that are defined inside blocks/closures need to run inside some pseudo-environment
393 even if the closure was never created or used in the first place
b343129 @fglock Perlito - TODO update
authored
394
b371c5d @fglock Perlito5 - js - AUTOLOAD finished; add tests; workaround for broken b…
authored
395 -- bug - method call context is disabled, because it breaks bootstrap.
396 in Runtime.pm:
397 function p5call(invocant, method, list, p5want) {
398 list.unshift(invocant);
399 p5want = 0; // TODO BUG - workaround for broken bootstrap
0cc64c5 @fglock Perlito5 - kill perl6-ish "method"
authored
400
39fbeed @fglock Perlito5 - TODO update
authored
401 -- bug https://github.com/fglock/Perlito/issues/10
402 "Perlito 5 JS has syntax errors"
403
404 Tried
405
406 YUI Compressor online
407 and
408 Google Closure Compiler
409 http://closure-compiler.appspot.com/home
410
411 Both failed with syntax errors.
412
9643c62 @fglock Perlito5 - TODO update
authored
413 -- flip-flop operator
414 if either operand to scalar '..' is a constant the value is implicitly compared to the input line number ($.)
415
416 -- unary minus on strings.
417
418 my $_ = "a"
419 print -$_
420 # -a
421
e4182ba @fglock Perlito5 - TODO update
authored
422 my $foo = '-bar';
423 print $foo;
424 print -$foo;
425 # -bar+bar
426
59477ad @fglock Perlito - TODO update
authored
427
fb9190c @fglock Perlito5 - TODO update
authored
428 * Nice to Have
a7ab071 @fglock Perlito5 - add TODO
authored
429
3c87580 @fglock Perlito - TODO update
authored
430 -- debugging symbols
431 -- line numbers in error messages
432
8f60cb4 @fglock Perlito5 - TODO update
authored
433 -- caller()
434 -- "when"
465ee11 @fglock Perlito5 - TODO update
authored
435
fb9190c @fglock Perlito5 - TODO update
authored
436 -- run more of the "perl" test suite
0cc64c5 @fglock Perlito5 - kill perl6-ish "method"
authored
437
71b0905 @fglock Perlito5 - docs update
authored
438 -- proper "use strict" and "use warnings"
1b2eecc @fglock Perlito5 - use @ARGV instead of @*ARGS
authored
439 -- use the same error messages and warnings as 'perl'
42a3449 @fglock Perlito5 - TODO update
authored
440 -- no warnings 'redefine';
1b2eecc @fglock Perlito5 - use @ARGV instead of @*ARGS
authored
441
ebce10f @fglock Perlito5 - parser: add __END__, __DATA__
authored
442 -- __LINE__, __FILE__
f4910a7 @fglock Perlito5 - TODO update
authored
443
b343129 @fglock Perlito - TODO update
authored
444 -- INIT{}, END{}
445 look at the implementation in perlito6-in-Go
f4910a7 @fglock Perlito5 - TODO update
authored
446
4b15a00 @fglock Perlito5 - cleanup parenthesis
authored
447 -- source code - remove Perl 6 code such as "token"
71b0905 @fglock Perlito5 - docs update
authored
448 (fixed: This is only loaded if the grammar compiler is needed)
4b15a00 @fglock Perlito5 - cleanup parenthesis
authored
449
61d64aa @fglock Perlito5 - parser: rewrite operator() in "perl5-land" for later tweaking
authored
450 -- *{ $name }{CODE}->();
451
452 -- local(*{$caller."::a"}) = \my $a;
6217752 @fglock Perlito5 - docs update
authored
453 -- *{$pkg . "::foo"} = \&bar;
61d64aa @fglock Perlito5 - parser: rewrite operator() in "perl5-land" for later tweaking
authored
454
455
9643c62 @fglock Perlito5 - TODO update
authored
456 * Oddities
457
458 -- from moritz, Schwern and others at
459 http://stackoverflow.com/questions/161872/hidden-features-of-perl
460
461 - you can give subs numeric names if you use symbolic references
462
463 $ perl -lwe '*4 = sub { print "yes" }; 4->()'
464 yes
465
466 - you can use letters as delimiters
467
468 $ perl -Mstrict -wle 'print q bJet another perl hacker.b'
469 Jet another perl hacker.
470
471 Likewise you can write regular expressions:
472
473 m xabcx
474 # same as m/abc/
475
476 The "desperation mode" of Perl's loop control constructs which causes them to look up the stack to find a matching label allows some curious behaviors which Test::More takes advantage of, for better or worse.
477
478 SKIP: {
479 skip() if $something;
480
481 print "Never printed";
482 }
483
484 sub skip {
485 no warnings "exiting";
486 last SKIP;
487 }
488
d6cad9b @fglock Perlito5 - TODO update
authored
489
490 * Deprecate
491
492 -- remove unused features from src5/lib/Perlito5/Grammar/Regex.pm
493
494 -- Interpreter backend
495 this is not being maintained; the code is still in src5/lib/Perlito5/Eval.pm just in case
496
497 -- Perl6 backend (started)
498 this is not being maintained; not sure if compiling to Perl6 is the best way
499 maybe compiling directly to Parrot/dotnet/Haskell gives better results
500
Something went wrong with that request. Please try again.