Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Why can't I use "say" with version 5.14

Reply
Thread Tools

Why can't I use "say" with version 5.14

 
 
John Black
Guest
Posts: n/a
 
      09-10-2013
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
 
Reply With Quote
 
 
 
 
John Black
Guest
Posts: n/a
 
      09-11-2013
In article <(E-Mail Removed)>, http://www.velocityreviews.com/forums/(E-Mail Removed) says...
>
> Quoth John Black <(E-Mail Removed)>:
> > 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


Thanks!

John Black
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with printing a bit pattern with printf and %x matt.jaffe@gmail.com C Programming 9 04-19-2013 12:14 PM
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] ASP .Net 5 02-09-2008 01:55 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? PA Bear [MS MVP] ASP .Net 0 02-05-2008 03:28 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? V Green ASP .Net 0 02-05-2008 02:45 AM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM



Advertisments