develooper Front page | perl.perl5.porters | Postings from December 2012

[perl #116192] Small bug in include directory slash interpretation

Thread Previous | Thread Next
From:
Victor Efimov via RT
Date:
December 27, 2012 20:59
Subject:
[perl #116192] Small bug in include directory slash interpretation
Message ID:
rt-3.6.HEAD-17500-1356419352-459.116192-15-0@perl.org
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=116192

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About