develooper Front page | perl.perl5.porters | Postings from July 2020

Re: Dual-life perl 5-or-7 code and prototypes - impossible?

Thread Previous | Thread Next
From:
Eric Brine
Date:
July 1, 2020 08:39
Subject:
Re: Dual-life perl 5-or-7 code and prototypes - impossible?
Message ID:
CALJW-qEnY3kGcBkXLMjOeVG-H1+7C29SDgvu0BYMVRQRKHYpBA@mail.gmail.com
On Tue., Jun. 30, 2020, 3:56 p.m. Kent Fredric, <kentfredric@gmail.com>
wrote:

> BEGIN {
>     if ( $] >= 7) {
>         require feature;
>         feature->unimport('signatures');
>     }
> }
>

By the way, simpler:

no if $] < 7, feature => qw( signatures );

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