develooper Front page | perl.perl5.porters | Postings from September 2014

Re: Versioned 'strict'

Thread Previous | Thread Next
Eirik Berg Hanssen
September 12, 2014 09:57
Re: Versioned 'strict'
Message ID:
On Fri, Sep 12, 2014 at 10:55 AM, Paul "LeoNerd" Evans <> wrote:

> "use feature" was added in 5.10, meaning if your program starts
>   use feature 'say';
> it will crash on 5.8. That was deemed acceptable.

  Since 5.8 does not implement the 'say' feature, it's kinda hard to avoid,
no?  Your program would not use that feature if it didn't rely on it.

  A better (fsvo "better") example might be:

   use feature 'array_base'; # now why on earth should this crash 5.8?!

  But the 'if' module can handle that well enough.  I don't see any
pressing need for a dual-live feature pragma. :)


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