syphilis has asked for the wisdom of the Perl Monks concerning the following question:
And here's the relevant section of the TestHelper.pm:C:\build\Gtk2-1.222>perl -Mblib -c blib\lib/Gtk2/TestHelper.pm syntax error at blib\lib/Gtk2/TestHelper.pm line 98, near "ok " syntax error at blib\lib/Gtk2/TestHelper.pm line 100, near "}" blib\lib/Gtk2/TestHelper.pm had compilation errors.
Does anyone know why perl-5.8 sees that as syntactically erroneous ? ... and what do do about it ?sub ok_idle ($;$) { 88: my ($testsub, $test_name) = @_; 89: run_main { 90: # 0 Test::More::ok 91: # 1 this block's ok() call 92: # 2 idle callback in run_main 93: # 3 Gtk2::main call in run_main 94: # 4 Gtk2::main call in run_main (again) 95: # 5 ok_idle 96: # 6 the caller we want to print 97: local $Test::Builder::Level = 6; 98: ok ($testsub->(), $test_name); 99: } 100: }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: syntax error - perl-5.8 only
by DrHyde (Prior) on Oct 18, 2010 at 09:58 UTC | |
by syphilis (Archbishop) on Oct 20, 2010 at 06:12 UTC | |
|
Re: syntax error - perl-5.8 only
by Anonymous Monk on Oct 19, 2010 at 16:48 UTC |