On 4/27/08, Bram via RT <perlbug-followup@perl.org> wrote: > > I'm not sure if that is intended behaviour for -x or not... (I tend to > believe it is but there is nothing in the documentation about it) > > Either way, if you want to avoid confusion then you can use the # line > directive > > > > $ perl -x << END > #1 > #2 > #3 > #!perl -w > > #line 100 > bla bla bla; > END > > Then the output is: > > Unquoted string "bla" may clash with future reserved word at - line 100. > > Can't locate object method "bla" via package "bla" (perhaps you forgot to > > load "bla"?) at - line 100 > Thank you, this helps. Though, I have to manually update the #line number, whenever the number of lines in the non-perl chunk has been changed.