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

Re: use feature

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
February 21, 2011 13:32
Subject:
Re: use feature
Message ID:
11686.1298323953@chthon
Zefram <zefram@fysh.org> wrote on Mon, 21 Feb 2011 20:04:21 GMT: 

>> Is there any meaninful difference between writing "use <VERSION>" 
>> and writing "use feature ':<VERSION>'" ?

> Yes, the former does other things too:

>   * check that the core version is at least that
>    specified (as opposed to merely being able to
>    provide the named feature set)

Is there any way for a version less than N to implement the features of
version N?  What you've written suggests there might be.

>   * depending on specified version, maybe turn on
>     strictures or other pragmata

I always get surprised that the 5.12 use turns on strict
but not warnings.  Kinda surprising, in a way.

--tom

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