develooper Front page | perl.perl5.porters | Postings from November 2011

Re: [perl #102064] [PATCH] Fix use inaccuracy in perlmod.pm

Thread Previous | Thread Next
From:
Dr.Ruud
Date:
November 1, 2011 14:48
Subject:
Re: [perl #102064] [PATCH] Fix use inaccuracy in perlmod.pm
Message ID:
4EAF47EB.6080302@isolution.nl
On 2011-10-30 11:18, Eric Brine wrote:
> On Sat, Oct 29, 2011 at 6:27 AM, Dr.Ruud <rvtol+usenet@isolution.nl
> <mailto:rvtol%2Busenet@isolution.nl>> wrote:

>     Not 'exactly equivalent':
>
>
> *Your* code isn't, but your code is different than the code in the
> patch. You took out the BEGIN block. Add it back in and the warning goes
> away.
>
>  >perl -we"use DBI; DBI::->import;"
>
>  >perl -we"BEGIN { require 'DBI.pm'; 'DBI'->import; } DBI::->import;"

Indeed, thanks.

-- 
Ruud



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