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

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

Thread Previous
From:
hv
Date:
December 25, 2012 09:36
Subject:
Re: [perl #116192] Small bug in include directory slash interpretation
Message ID:
201212250836.qBP8aau23060@crypt.org
"James E Keenan via RT" <perlbug-followup@perl.org> wrote:
: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.
[...]
: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.

I don't think the script content has any particular relevance. Here's an
example:

% mkdir mylib ; echo 'print "hello world" . $undef' >mylib/A.pm
% perl -Imylib/ -wle 'use A'
Use of uninitialized value $undef in concatenation (.) or string at mylib//A.pm line 1.
hello world
% 

Note the doubled slash in the warning message "mylib//A.pm"? That still
happens with a recent blead.

Hugo

Thread Previous


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