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

Re: use feature

Thread Previous | Thread Next
Tom Christiansen
February 21, 2011 13:32
Re: use feature
Message ID:
Zefram <> 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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About