It's part of the handling of #! lines. Perl reads a block, then tries to undo the read, but it doesn't have all the necessary information to do so, so it guesses. The end result is that it thinks the file is
instead ofxception; use Test::Builder; use Sub::Uplevel qw( uplevel ); use base qw( Exporter ); ...
use strict; use warnings; package Test::Exception; use Test::Builder; use Sub::Uplevel qw( uplevel ); use base qw( Exporter ); ...
Or something like that. There are holes in that explanation. For example, how could strict subs be on when it encountered "xception"? But while I can't quite explain the result in this specific case, I'm quite sure about the cause. If I'm wrong, well, I only wasted a minute of your time. Did you try my fix?
In reply to Re^3: Test::Exception error on Strawberry Perl 5.14.3 ('Bareword "xception" ...')
by ikegami
in thread Test::Exception error on Strawberry Perl 5.14.3 ('Bareword "xception" ...')
by 1nickt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |