Ok, I made proof-of-concept code: $ cat src/myscript.pl use MyModule; 1; $ cat src/MyModule.pm package MyModule; use warnings; use strict; $x=1; 1; $ perl -Isrc src/myscript.pl Global symbol "$x" requires explicit package name at src/MyModule.pm line 4. Compilation failed in require at src/myscript.pl line 1. BEGIN failed--compilation aborted at src/myscript.pl line 1. $ perl -Isrc/ src/myscript.pl Global symbol "$x" requires explicit package name at src//MyModule.pm line 4. Compilation failed in require at src/myscript.pl line 1. BEGIN failed--compilation aborted at src/myscript.pl line 1. bug in message "Global symbol "$x" requires explicit package name at src//MyModule.pm" Пнд. Дек. 24 20:11:13 2012, jkeenan писал: > On Mon Dec 24 08:42:38 2012, vsespb wrote: > > This is a bug report for perl from victor@vsespb.ru, > > generated with the help of perlbug 1.39 running under perl 5.10.1. > > > > > > ----------------------------------------------------------------- > > [Please describe your issue here] > > > > > > > > If perl ran as "perl -Isrc/ src/myscript.pl" I am getting the > > following warning message for my script: > > Odd number of elements in hash assignment at src//ChildWorker.pm line > > 35. > > (i.e. two '/' characters) > > > > but when run as perl -Isrc/ src/myscript.pl I am getting just on slash > > Odd number of elements in hash assignment at src/ChildWorker.pm line > > 35. > > > > > > Can you supply more details as to the content of 'src/myscript.pl' and > 'src/ChildWorker.pm'? > > It may be that your code has a problem which truly ought to generate a > warning. But it will be difficult to tell for sure until we see some > more code. > > Thank you very much. > Jim Keenan --- via perlbug: queue: perl5 status: open https://rt.perl.org:443/rt3/Ticket/Display.html?id=116192Thread Previous | Thread Next