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

Re: use feature

Thread Previous | Thread Next
From:
Zefram
Date:
February 21, 2011 12:04
Subject:
Re: use feature
Message ID:
20110221200421.GJ32693@lake.fysh.org
Tom Christiansen wrote:
>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)

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

-zefram

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