The problem is not with @INC but with "BEGIN" versus "LABEL:" : </c>
perl -le "BEGIN: { print 'LABEL: block' }; BEGIN{ print 'BEGIN block'} + "
Perl sees your BEGIN: and interprets it as a label - you sure meant it as that because you followed it with a colon (:)...
In reply to Re: Assignment to @INC in BEGIN block gives puzzling results
by Corion
in thread Assignment to @INC in BEGIN block gives puzzling results
by jkeenan1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |