[32767] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 4031 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 11 09:09:34 2013

Date: Wed, 11 Sep 2013 06:09:02 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 11 Sep 2013     Volume: 11 Number: 4031

Today's topics:
        Why can't I use "say" with version 5.14 <jblack@nospam.com>
    Re: Why can't I use "say" with version 5.14 <ben@morrow.me.uk>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Tue, 10 Sep 2013 11:00:47 -0500
From: John Black <jblack@nospam.com>
Subject: Why can't I use "say" with version 5.14
Message-Id: <MPG.2c98fe2af5ff2b06989788@news.eternal-september.org>

perl -v reveals that I have version 5.14 installed but the "say" command does not work unless 
I include this line:

use feature ':5.10';

Shouldn't 5.10 features already be default in 5.14??

John Black


------------------------------

Date: Tue, 10 Sep 2013 19:42:59 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Why can't I use "say" with version 5.14
Message-Id: <jq54ga-asl1.ln1@anubis.morrow.me.uk>


Quoth John Black <jblack@nospam.com>:
> perl -v reveals that I have version 5.14 installed but the "say" command
> does not work unless 
> I include this line:
> 
> use feature ':5.10';
> 
> Shouldn't 5.10 features already be default in 5.14??

No. That's the whole point of feature.pm: you might already have a
pre-5.10 program which uses a 'say' sub, and if 5.10 (or 5.14) turned
the builtin on by default that program would stop working.

From 5.10 onwards, 'use 5.010' will call 'use feature ":5.10"' in
addition to the compile-time check for perl 5.10. The same applies for
later versions of perl. This means you can put 'use VERSION' at the top
of each file along with strict and warnings and that file will continue
to use the semantics of the version you wrote it for even on future
versions of perl.

(Incidentally, 'use 5.012' and later also imply 'use strict'...)

Ben



------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 4031
***************************************


home help back first fref pref prev next nref lref last post