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 15, 2013 01:51
Subject:
Re: [perl #117969] use POSIX emits multiple warnings if used after "Cwd"
Message ID:
CALJW-qFPgbaPG9xhX+pKe1P1AfMLPQvFRShu65znUdfuzXB8fQ@mail.gmail.com
On Mon, May 13, 2013 at 9:40 PM, Linda Walsh via RT <
perlbug-comment@perl.org> wrote:

> If something is going to export that many symbols by default,
> it would seem care should be taken not to overwrite the names if
> they are already in use.  If warnings are issued, it would be
> more appropriate (in the *default* case on this module), to
> put the errors in $@ and developers who were concerned that
> they got the right module from POSIX, could check $@.
>

Expecting people to replace all isntance of

use Module;

with

BEGIN { require Module; warn $@ if $@; }

is ludicrous, not "more appropriate".

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