Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Announcing Perl 7

by hippo (Bishop)
on Jun 25, 2020 at 12:35 UTC ( [id://11118526]=note: print w/replies, xml ) Need Help??


in reply to Re: Announcing Perl 7
in thread Announcing Perl 7

... it would also remove the need to specify a perl version in order to use non-experimental, permanent features that that particular version brings. For example, need to add use v5.10; to use //= with perl 5.10.

Perhaps I've misunderstood you but I don't think that would be a change. I can quite happily use defined-or-equals without such a declaration in 5.10 (admittedly 5.10.1 which is the nearest version to which I have access - is it different for 5.10.0?).

$ perl -v | head -3 This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi $ perl -e '$z //= 20; print "$z\n";' 20 $

Replies are listed 'Best First'.
Re^3: Announcing Perl 7
by parv (Parson) on Jun 25, 2020 at 13:26 UTC

    Thanks much, hippo, for correcting me. I might have mixed my memory of use 'v5.10' so that program would not compile with perl 5.8 when using "//=".

    Would a better example be of say where in perl 5.32 still need to enable it via feature or v5.10?

      Yes, there are two kinds of features, those using the feature pragma and those not using it. See my Syntax::Construct which tries to address it (and will be obsoleted by Perl 7, yay!)

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11118526]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-19 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found