develooper Front page | perl.perl5.porters | Postings from May 2013

Re: [perl #117969] use POSIX emits multiple warnings if used after "Cwd"

Thread Previous | Thread Next
From:
Eric Brine
Date:
May 13, 2013 00:57
Subject:
Re: [perl #117969] use POSIX emits multiple warnings if used after "Cwd"
Message ID:
CALJW-qF8YaPU3_36iZ-1ndp1z7yE+coQiWH_H5twpTsG+RJN2Q@mail.gmail.com
On Sun, May 12, 2013 at 1:10 PM, Linda Walsh via RT <
perlbug-followup@perl.org> wrote:

>      It turns out that putting the CWD module 2nd silences the problem
> as it doesn't have the same bug as the POSIX module.


First, that's not true for me (see below), but more importantly, you have
it completely backwards. Warning about your error is not a bug. Not warning
you about your error is a bug.



>perl -we"use POSIX; use Cwd qw( getcwd );"
Subroutine main::getcwd redefined at
C:/Progs/perl5162-ap1602/lib/Exporter.pm line 66.
 at -e line 1.

>perl -we"use Cwd qw( getcwd ); use POSIX;"
Subroutine main::getcwd redefined at -e line 1.

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