Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Multiple ${VERSION}s for same $VERSION

by parv (Priest)
on Nov 05, 2013 at 17:12 UTC ( #1061331=note: print w/replies, xml ) Need Help??


in reply to Re^3: Modern::Perl version 2011 required--this is only version 1.03 at my-perl-script.cgi
in thread Modern::Perl version 2011 required--this is only version 1.03 at my-perl-script.cgi

(After reading M/Perl.pm, I see the validity of year specifier (as version specifier).) chromatic, why have both the regular version string and also (plain) year as version?

Replies are listed 'Best First'.
Re: Multiple ${VERSION}s for same $VERSION
by chromatic (Archbishop) on Nov 05, 2013 at 17:44 UTC
    why have both the regular version string and also (plain) year as version?

    The integer year lets you see how recent or old the code is at a glance, but it's not a version number. You can install the most recent M::P and write use Modern::Perl '2010'; while still requiring the most recent version.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061331]
help
Chatterbox?
choroba's discovered two instances of a weird animal in the code at work: \@$var
[Eily]: hum, tied scalar, generates a new array when derefed ? :D
[Corion]: choroba: Ah, when doing a shallow copy, I prefer [ @$var ] - I think \@$var might return the same reference instead of a reference to a fresh copy
[Corion]: perl -wle "my $ar = [1,2,3]; my $br=\@$ar; print qq($ar / $br)" confirms this to me
[karlgoethebier]: "discovered" this to sum an array: perl -E 'say scalar map {1 .. $_} (1..3);'
[Corion]: karlgoethebier: Hahaha :)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-09-26 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?